Skip to content

Commit 166dd2c

Browse files
Update [video-]dynamic-range media queries
As of the latest discussion on the spec, it's been determined that '[video-]dynamic-range: standard' should be a subset of '[video-]dynamic-range: high'. This CL implements that change, and updates all tests accordingly. The relevant spec discussion may be viewed here: w3c/csswg-drafts#6793 Bug: 1224711 Change-Id: I640e574cd2809dc1d8b721115e79372d302c723a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3293745 Reviewed-by: Anders Hartvoll Ruud Commit-Queue: Will Cassella Cr-Commit-Position: refs/heads/main@{#944203}
1 parent 2858bee commit 166dd2c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

css/mediaqueries/dynamic-range.html

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,13 @@
3535

3636
test(() => {
3737
let match_standard = window.matchMedia("(dynamic-range: standard)");
38-
let match_high = window.matchMedia("(dynamic-range: high)");
39-
assert_not_equals(match_standard.matches, match_high.matches);
40-
}, "Check that dynamic-range is 'standard' or 'high', but not both");
38+
assert_true(match_standard.matches);
39+
}, "Check that dynamic-range always matches 'standard'");
4140

4241
test(() => {
4342
let match_standard = window.matchMedia("(video-dynamic-range: standard)");
44-
let match_high = window.matchMedia("(video-dynamic-range: high)");
45-
assert_not_equals(match_standard.matches, match_high.matches);
46-
}, "Check that video-dynamic-range is 'standard' or 'high', but not both");
43+
assert_true(match_standard.matches);
44+
}, "Check that video-dynamic-range always matches 'standard'");
4745

4846
test(() => {
4947
let match_invalid = window.matchMedia("(video-dynamic-range: invalid)");

0 commit comments

Comments
 (0)