mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
Our parsing code was treating `foo` and `foo: bar` as `<media-feature>`s when really they need to be `(foo)` and `(foo: bar)` respectively. This previously worked for the valid case because boolean expressions can also have arbitrary `()` blocks. However, it meant we'd also allow them without the parentheses which isn't valid. So instead, parse and serialize the parentheses as part of the `<media-feature>`. This gets us some WPT passes and fixes an Acid3 failure.
14 KiB
14 KiB