mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +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.
22 lines
886 B
Plaintext
22 lines
886 B
Plaintext
Harness status: OK
|
|
|
|
Found 17 tests
|
|
|
|
17 Pass
|
|
Pass Should be known: '(display-mode)'
|
|
Pass Should be known: '(display-mode: standalone)'
|
|
Pass Should be known: '(display-mode: browser)'
|
|
Pass Should be known: '(display-mode: minimal-ui)'
|
|
Pass Should be known: '(display-mode: fullscreen)'
|
|
Pass Should be known: '(display-mode: picture-in-picture)'
|
|
Pass Should be parseable: '(display-mode: 0)'
|
|
Pass Should be unknown: '(display-mode: 0)'
|
|
Pass Should be parseable: '(display-mode: none)'
|
|
Pass Should be unknown: '(display-mode: none)'
|
|
Pass Should be parseable: '(display-mode: random)'
|
|
Pass Should be unknown: '(display-mode: random)'
|
|
Pass Should be parseable: '(display-mode: 10px)'
|
|
Pass Should be unknown: '(display-mode: 10px)'
|
|
Pass Should be parseable: '(display-mode: 1%)'
|
|
Pass Should be unknown: '(display-mode: 1%)'
|
|
Pass Check that display-mode evaluates to true in the boolean context |