1

Why is it not possible to use the same ruleset for multiple ::selections as it is for other elements (eg div, span { }) ?

Why doesn't the second example work?

This works:

::selection {
 background: red; 
}
::-moz-selection {
 background: red; 
}
some text


Whereas this doesn't:

::selection,
::-moz-selection {
 background: red; 
}
some text


Why so?

mhpreiman
  • 139
  • 2
  • 4
  • 13

0 Answers0