From the comments and the availability of other hacks, I created a workaround.
It compiles using the WinLess.org compiler (http://winless.org/online -less-compiler), as mentioned.
It does not compile using DotLess, so I just canceled the hack. Instead:
#mySelector {
color: red;
}
@-moz-document url-prefix() {
#mySelector {
color: green;
}
}
Instead, I did:
#mySelector {
color: green;
color: ~"red\9";
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
#mySelector {
color: red;
}
}
source
share