Files
ladybird/Tests/LibWeb/Text/expected/wpt-import/css/mediaqueries/scripting.txt
Sam Atkins 9b8dc6b8d0 LibWeb/CSS: Parse media-feature values forgivingly
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.
2025-05-23 10:17:58 +01:00

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