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

@@ -0,0 +1,14 @@
Harness status: OK
Found 8 tests
6 Pass
2 Fail
Pass :state() parsing passes
Pass :state() parsing failures
Pass deprecated :--state parsing failures
Fail :state(foo) serialization
Pass :state(foo) in simple cases
Pass :state(foo) and other pseudo classes
Fail :state(foo) and ::part()
Pass :state(foo) and :host()