Hey there, I love using the Prefixr Plugin for Sublime but I’ve noticed something that is rather annoying.
Say I have
[code]#button {
width:80px;
height:30px;
background-color: #feca5c;
background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(254, 218, 113)),to(rgb(254, 186, 72)));
background-image: -webkit-linear-gradient(top, rgb(254, 218, 113), rgb(254, 186, 72));
background-image: -moz-linear-gradient(top, rgb(254, 218, 113), rgb(254, 186, 72));
background-image: -o-linear-gradient(top, rgb(254, 218, 113), rgb(254, 186, 72));
background-image: -ms-linear-gradient(top, rgb(254, 218, 113), rgb(254, 186, 72));
background-image: linear-gradient(top, rgb(254, 218, 113), rgb(254, 186, 72));
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr=’#feda71’, EndColorStr=’#feba48’);
}[/code]
I highlight the below code to run Prefixr over it. It cleans it up great but for some reason it also removes the width and height there, why is it doing this? Why isn’t it only Prefix’ing what I’ve selected?
background-color: #feca5c;
background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(254, 218, 113)),to(rgb(254, 186, 72)));
background-image: -webkit-linear-gradient(top, rgb(254, 218, 113), rgb(254, 186, 72));
background-image: -moz-linear-gradient(top, rgb(254, 218, 113), rgb(254, 186, 72));
background-image: -o-linear-gradient(top, rgb(254, 218, 113), rgb(254, 186, 72));
background-image: -ms-linear-gradient(top, rgb(254, 218, 113), rgb(254, 186, 72));
background-image: linear-gradient(top, rgb(254, 218, 113), rgb(254, 186, 72));
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#feda71', EndColorStr='#feba48');