less.ruby
less.ruby copied to clipboard
less stripping out colons from pseudo-classes starting with a -
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;
}