Re: Unrecognized ::selection

On Sun, Jun 11, 2017 at 3:13 AM, Vader <vader.24@onet.pl> wrote:

>
> Why the CSS validator marks ::selection as invalid pseudo-element?
> It is part of current specification.
>

It currently isn’t part of CSS specifications.

The MDN page on ::selection says:
“The ::selection CSS pseudo-element was drafted for *CSS Selectors Level 3* but
removed before it reached the Recommendation status. It was re-added as
part of the Pseudo-Elements Level 4 draft.”
https://developer.mozilla.org/en-US/docs/Web/CSS/::selection

The MDN material is not normative, but you can check the links there to see
that the information is correct. The ::selection pseudo-element is at
present just part of an initial-definition Working Draft.

Yucca

Received on Sunday, 11 June 2017 10:28:58 UTC