[csswg-drafts] [selectors-4] Should we have :open and :closed? (#11039)

josepharhar has just created a new issue for https://github.com/w3c/csswg-drafts:

== [selectors-4] Should we have :open and :closed? ==
It was resolved here to have both :open and :closed pseudo-classes: https://github.com/w3c/csswg-drafts/issues/7319#issuecomment-1276473056

@annevk mentioned here that :closed is redundant with :not(:open): https://github.com/WebKit/standards-positions/issues/413#issuecomment-2406663870

Here is the justification for having both of them: https://github.com/w3c/csswg-drafts/issues/7319#issuecomment-1242377579

> Should we also talk about adding the corresponding :closed pseudo class? That would avoid the problem that :not(:open) can match anything, including things that don't open or close.

The HTML spec has not been merged yet: https://github.com/whatwg/html/pull/10126

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11039 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 15 October 2024 18:09:44 UTC