mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 01:51:03 +09:00

The spec gives us a hard-coded list of functional pseudo-classes and how to serialize them - but this list is incomplete and likely to always be outdated compared to the list of pseudo-classes that exist. So instead, use the generated metadata we already have to serialize their arguments based on their type. This fixes :dir() and :has(), which previously did not serialize their arguments. Gets us 26 passes (including 6 from that as-yet-unmerged :dir() test).
16 lines
No EOL
537 B
Text
16 lines
No EOL
537 B
Text
Harness status: OK
|
|
|
|
Found 10 tests
|
|
|
|
9 Pass
|
|
1 Fail
|
|
Pass ":dir(rtl)" should be a valid selector
|
|
Pass ":dir( rtl )" should be a valid selector
|
|
Pass ":dir(ltr):dir(rtl)" should be a valid selector
|
|
Pass "foo:dir(RTL)" should be a valid selector
|
|
Pass ":dir(auto)" should be a valid selector
|
|
Pass ":dir(none)" should be a valid selector
|
|
Fail ":dir(something-made-up)" should be a valid selector
|
|
Pass ":dir()" should be an invalid selector
|
|
Pass ":dir(\"ltr\")" should be an invalid selector
|
|
Pass ":dir(ltr, rtl)" should be an invalid selector |