sublime_prefixr icon indicating copy to clipboard operation
sublime_prefixr copied to clipboard

When running prefixr multiple times, some styles may disappear

Open ChezFre opened this issue 12 years ago • 10 comments

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.

ChezFre avatar Apr 07 '12 00:04 ChezFre

I have similar issue. Only in my case styles disappear every time when I run prefixr :(

gornostal avatar May 30 '12 16:05 gornostal

I figured out that it happens only when I select one css property and then run prefixr

gornostal avatar May 30 '12 17:05 gornostal

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);
}

ninnypants avatar Jun 12 '12 15:06 ninnypants

Same here.

MichMich avatar Jul 03 '12 19:07 MichMich

Seems like wbond quit developing this package...

varemenos avatar Jul 05 '12 05:07 varemenos

Would someone fork and continue? :)

pixelfreak avatar Aug 27 '12 23:08 pixelfreak

Just for clarity, this a dupe of #2.

taitems avatar Jan 16 '13 23:01 taitems

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.

taitems avatar Jan 16 '13 23:01 taitems

.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;

mediter avatar Feb 09 '13 16:02 mediter

Just submitted a PR that should fix this until Prefixr gets its act together and correctly processes CSS snipets without brackets.

schmod avatar Mar 27 '13 18:03 schmod