1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 01:51:03 +09:00
ladybird/Tests/LibWeb/Text/expected/css/parse-dir-selector.txt
Sam Atkins 7aed541ed0 LibWeb/CSS: Automatically serialize functional pseudo-class arguments
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).
2025-05-17 00:30:44 +02:00

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