W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2018

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

From: SelenIT via GitHub <sysbot+gh@w3.org>
Date: Fri, 05 Jan 2018 13:47:20 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-355558319-1515160039-sysbot+gh@w3.org>
> 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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:22 UTC