LibWeb/CSS: Implement the :state(foo) pseudo-class

This matches custom elements that have `foo` in their custom states set.

The 2 test failures here are because we don't support `::part()` yet.
This commit is contained in:
Sam Atkins
2025-07-04 15:18:08 +01:00
committed by Tim Ledbetter
parent 5387c923ca
commit 202c55bf28
Notes: github-actions[bot] 2025-07-04 17:11:37 +00:00
12 changed files with 503 additions and 2 deletions

View File

@@ -2,5 +2,5 @@ Harness status: OK
Found 1 tests
1 Fail
Fail Test :has() invalidation with :state() pseudo-classes
1 Pass
Pass Test :has() invalidation with :state() pseudo-classes