less.ruby icon indicating copy to clipboard operation
less.ruby copied to clipboard

less stripping out colons from pseudo-classes starting with a -

Open jonathan3 opened this issue 15 years ago • 0 comments

The ::selection pseudo-class is supported in Gecko engine browsers with the pseudo-class ::-moz-selection. When run through the less compiler, the colons are stripped out rendering the property useless in Firefox and other browsers using the same engine. I am using less 1.2.21.

e.g.

::selection, ::-moz-selection {
 background: black;
 color: #ffffff;
}

becomes

::selection, -moz-selection {
 background: black;
 color: #fff;
}

jonathan3 avatar Mar 30 '10 23:03 jonathan3