I am working on a site with a lot of color styles, around 250 lines of CSS, to define one of 7 color schemes, so it is important that I keep the different color rules grouped as best as possible.
The newest RC browser, Firefox 4, does not work well when I try to use stacks that belong to the deprecated CSS3 ::selection pseudo-element.
It works:
.green ::-moz-selection { background-color: #62BA21; color: white; }
But as soon as I try to share this rule with the selector for webkit, it will break.
Doesn't work for FireFox:
.green ::selection, .green ::-moz-selection { background-color: #62BA21; color: white; }
I understand that they may not address the error, since ::selection no longer present in the working draft, but I would prefer that I do not have to inflate my CSS more than this for this quirk.
html css firefox css-selectors css3
Graham Conzett Mar 14 '11 at 17:35 2011-03-14 17:35
source share