mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +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.
19 lines
666 B
Plaintext
19 lines
666 B
Plaintext
Harness status: OK
|
|
|
|
Found 14 tests
|
|
|
|
14 Pass
|
|
Pass Should be known: '(update)'
|
|
Pass Should be known: '(update: none)'
|
|
Pass Should be known: '(update: slow)'
|
|
Pass Should be known: '(update: fast)'
|
|
Pass Should be parseable: '(update: ?)'
|
|
Pass Should be unknown: '(update: ?)'
|
|
Pass Should be parseable: '(update: 10px)'
|
|
Pass Should be unknown: '(update: 10px)'
|
|
Pass Should be parseable: '(update: 0)'
|
|
Pass Should be unknown: '(update: 0)'
|
|
Pass Check that update: fast always matches fast displays
|
|
Pass Check that update: slow doesn't match fast displays
|
|
Pass Check that update: none doesn't match fast displays
|
|
Pass Check that update always matches non printing documents |