Re: [csswg-drafts] [css-scrollbars-1] New "better" proposition for scrollbars

> where p::first-line:hover means p:hover::first-line?

It doesn't. They never very equivalent. The CSS Selectors Level 3 spec effectively allowed the pseudo element to be [only at the end](https://www.w3.org/TR/css3-selectors/#pseudo-elements) of the selector:
> Only one pseudo-element may appear per selector, and if present it must appear after the sequence of simple selectors that represents the [subjects](https://www.w3.org/TR/css3-selectors/#subject) of the selector.

> The _elements of a document tree_ that are represented by a selector are the subjects of the selector.

so if the _element_ represented by a selector — the subject of the selector — is a hovered paragraph, then the pseudo element can only follow the `p:hover` part, but never be inserted between `p` and `hover`. In fact, `p::first-line:hover` was simply invalid (though it was not very clear per grammar) and was treated as such in all browsers (AFAIK).

-- 
GitHub Notification of comment by SelenIT
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2153#issuecomment-355558319 using your GitHub account

Received on Friday, 5 January 2018 13:47:22 UTC