Answer the question
In order to leave comments, you need to log in
Vendor prefixes on one line?
Is it acceptable to markup like this:
::-moz-selection, ::selection {
background-color: tomato;
}
::-moz-selection {
background-color: tomato;
}
::selection {
background-color: tomato;
}
Answer the question
In order to leave comments, you need to log in
The browser ignores the entire group of selectors if one of them is not valid. And for chrome, for example, ::-moz-selection will not be valid, which means the properties will not be applied.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question