You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
EXPAND :has() to include support for more pseudo-classes #555
Some of the most interesting usecases are when you put another pseudo-class inside of :has(). For example, :has(:playing) targets an element if there's a video or audio element playing inside of it. :has(:user-invalid) targets an element if there's a form field inside of it that's in an invalid state — making it very easy, for example, to create a red border on a text label when its field is not filled out correctly.
It would be great to see if we can get support for all of the pseudo-class (except, of course, for the ones that are disallowed in the standard).
Reacted by Jacob Rask, Michał Niedziółka, BearCoder, Yisi, Dan Ryan, Tobias Wolf, Brandon McConnell, Jeroen Zwartepoorte, theAdhocracy, Olly Hodgson and 9 more
Reacted by Brandon McConnell, John L. Armstrong IV and Joseph Saab
changed the title [-]EXPAND: :has() to include support for pseudo-classes[/-][+]EXPAND `:has()` to include support for pseudo-classes[/+]on Oct 5, 2023
@dbaron Matching works fine in most browsers, it's mostly invalidation that needs work, although both Chrome & WebKit have made progress in that area over the past year.
A list of tests will be need to evaluate the work required for this proposal, as it's not clear if there are things that don't work in Chrome here, beyond pseudo-classes that aren't supported at all yet.
changed the title [-]EXPAND `:has()` to include support for pseudo-classes[/-][+]EXPAND `:has()` to include support for more pseudo-classes[/+]on Oct 10, 2023
Thank you for proposing EXPAND :has() to include support for more pseudo-classes for inclusion in Interop 2024.
We wanted to let you know that this proposal was not selected to be part of Interop this year.
We could not find any tests for EXPAND :has() to include support for more pseudo-classes in the Web Platform Tests. Such tests are crucial for measuring interoperability status and progress. Once there are WPT entries covering this proposal, we welcome it being resubmitted for a future round of Interop.
For an overview of our process, see proposal selection. Thank you again for contributing to Interop 2024!
Activity
[-]Extend :has() to include support for pseudo-classes[/-][+]EXPAND: :has() to include support for pseudo-classes[/+][-]EXPAND: :has() to include support for pseudo-classes[/-][+]EXPAND `:has()` to include support for pseudo-classes[/+]dbaron commentedon Oct 6, 2023
Are there particular examples of pseudo-classes where:
:has(),:has(), and:has()?(I just tested
:hoverand:checkedinside of:has()in Chrome Canary, and they worked fine.)nt1m commentedon Oct 7, 2023
@dbaron Matching works fine in most browsers, it's mostly invalidation that needs work, although both Chrome & WebKit have made progress in that area over the past year.
foolip commentedon Oct 10, 2023
A list of tests will be need to evaluate the work required for this proposal, as it's not clear if there are things that don't work in Chrome here, beyond pseudo-classes that aren't supported at all yet.
[-]EXPAND `:has()` to include support for pseudo-classes[/-][+]EXPAND `:has()` to include support for more pseudo-classes[/+]bennypowers commentedon Oct 18, 2023
Does this include
:host(:has())?jgraham commentedon Feb 1, 2024
Thank you for proposing EXPAND
:has()to include support for more pseudo-classes for inclusion in Interop 2024.We wanted to let you know that this proposal was not selected to be part of Interop this year.
We could not find any tests for EXPAND
:has()to include support for more pseudo-classes in the Web Platform Tests. Such tests are crucial for measuring interoperability status and progress. Once there are WPT entries covering this proposal, we welcome it being resubmitted for a future round of Interop.For an overview of our process, see proposal selection. Thank you again for contributing to Interop 2024!
Posted on behalf of the Interop team.