Why can't I combine ::selection and ::-moz-selection in one CSS rule? [duplicate]
问题 This question already has answers here : Why isn't it possible to combine vendor-specific pseudo-elements/classes into one rule set? (2 answers) Closed 6 years ago . I'm a big fan of using ::selection and ::-moz-selection to spruce up a website a bit - I hate the default blue and white colours! However, I find one little thing that really bugs me: I can't put ::selection and ::-moz-selection in the same CSS rule, like this: ::selection, ::-moz-selection { background:#8A1920; color:#FFFF; }