mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
Instead of rejecting invalid media-feature values at parse time, we are expected to parse them, and then treat them as Unknown when evaluating their media query. To implement this, we first try to parse a valid value as before. If that fails, or we have any trailing tokens that could be part of a value, we then scoop up all the possible ComponentValues and treat that as an "unknown"-type MediaFeatureValue. This gets us 66 WPT passes.
17 lines
617 B
Plaintext
17 lines
617 B
Plaintext
Harness status: OK
|
|
|
|
Found 12 tests
|
|
|
|
12 Pass
|
|
Pass Should be known: '(scripting)'
|
|
Pass Should be known: '(scripting: enabled)'
|
|
Pass Should be known: '(scripting: initial-only)'
|
|
Pass Should be known: '(scripting: none)'
|
|
Pass Should be parseable: '(scripting: 0)'
|
|
Pass Should be unknown: '(scripting: 0)'
|
|
Pass Should be parseable: '(scripting: 10px)'
|
|
Pass Should be unknown: '(scripting: 10px)'
|
|
Pass Should be parseable: '(scripting: invalid)'
|
|
Pass Should be unknown: '(scripting: invalid)'
|
|
Pass Check that scripting currently matches 'enabled'
|
|
Pass Check that scripting currently evaluates to true in the boolean context |