mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
The spec requires us to accept any ident here, not just ltr/rtl, and also serialize it back out. That means we need to keep the original string around. In order to not call keyword_from_string() every time we want to match a :dir() selector, we still attempt to parse the keyword and keep it around. A small behaviour change is that now we'll serialize the ident with its original casing, instead of always lowercase. Chrome and Firefox disagree on this, so I think either is fine until that can be officially decided. Gets us 2 WPT passes (including 1 from the as-yet-unmerged :dir() test).
9.8 KiB
9.8 KiB