sublime_prefixr
sublime_prefixr copied to clipboard
When running prefixr multiple times, some styles may disappear
I started out with the following code block:
#wrapper {
background-color: rgb(200,180,255);
border-radius: 10px;
}
Running prefixr once gave me prefixes for -webkit and -moz, running it again removed the background-color style.
I have similar issue. Only in my case styles disappear every time when I run prefixr :(
I figured out that it happens only when I select one css property and then run prefixr
Same issue here in Build 2181
It seems to be that if you run the command on an item that has been prefixed it removes the rest of the rules for that selector. So this:
div{
background: #000;
transform: rotate(20deg);
}
Turns into:
div{
background: #000;
-webkit-transform: rotate(20deg);
-moz-transform: rotate(20deg);
-o-transform: rotate(20deg);
-ms-transform: rotate(20deg);
transform: rotate(20deg);
}
Then into:
div{
-webkit-transform: rotate(20deg);
-moz-transform: rotate(20deg);
-o-transform: rotate(20deg);
-ms-transform: rotate(20deg);
transform: rotate(20deg);
}
Same here.
Seems like wbond quit developing this package...
Would someone fork and continue? :)
Just for clarity, this a dupe of #2.
Also, a work around would be to allow prefixr to work on text selection. Currently it's scoped to the entire code block, whereas my first attempt to use the plugin was to use it on the text I had selected. At least that quick fix wouldn't require a full logic rewrite.
.ch-info { position: absolute; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; opacity: 1;
-webkit-transition: all 0.4s ease-in-out;
-moz-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
-ms-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;
transform: scale(1);
}
run Prefixr would delete
position: absolute;
width: 100%;
height: 100%;
border-radius: 50%;
overflow: hidden;
opacity: 1;
Just submitted a PR that should fix this until Prefixr gets its act together and correctly processes CSS snipets without brackets.