Skip to content

Commit f3b5a76

Browse files
authored
[mediaqueries-4][mediaqueries-5][editorial] Added WPTs (#12734)
1 parent ec0651c commit f3b5a76

File tree

2 files changed

+278
-0
lines changed

2 files changed

+278
-0
lines changed

mediaqueries-4/Overview.bs

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ Abstract:
2121
Abstract: Media Queries Level 4 describes the mechanism and syntax of media queries, media types, and media features. It extends and supersedes the features defined in Media Queries Level 3.
2222
Ignored Terms: min-resolution, max-resolution, none, view-mode, mediaText, CSSOMString
2323
Link Defaults: css-break-3 (property) break-inside
24+
WPT Path Prefix: css/mediaqueries/
25+
WPT Display: open
2426
Can I Use URL: https://drafts.csswg.org/mediaqueries-4/
2527
Can I Use URL: http://drafts.csswg.org/mediaqueries-4/
2628
Can I Use URL: https://drafts.csswg.org/mediaqueries/
@@ -144,6 +146,14 @@ Units</h3>
144146
defined by the user agent or the user's preferences,
145147
not any styling on the page.</span>
146148

149+
<wpt>
150+
relative-units-001.html
151+
relative-units-002.html
152+
relative-units-003.html
153+
relative-units-004.html
154+
relative-units-005.html
155+
</wpt>
156+
147157
<!--
148158
██ ██ ███████
149159
███ ███ ██ ██
@@ -218,6 +228,29 @@ Media Queries</h2>
218228

219229
Unless another feature explicitly specifies that it affects the resolution of Media Queries, it is never necessary to apply a style sheet in order to evaluate expressions.
220230

231+
<wpt>
232+
media-queries-001.xht
233+
media-queries-002.xht
234+
media-queries-003.xht
235+
mq-calc-001.html
236+
mq-calc-002.html
237+
mq-calc-003.html
238+
mq-calc-004.html
239+
mq-calc-005.html
240+
mq-calc-006.html
241+
mq-calc-007.html
242+
mq-calc-008.html
243+
mq-calc-resolution.html
244+
mq-calc-sign-function-001.html
245+
mq-calc-sign-function-002.html
246+
mq-calc-sign-function-003.html
247+
mq-calc-sign-function-004.html
248+
mq-calc-sign-function-005.html
249+
mq-calc-sign-function-006.html
250+
mq-dynamic-empty-children.html
251+
test_media_queries.html
252+
</wpt>
253+
221254
<h3 id='mq-list'>
222255
Combining Media Queries</h3>
223256

@@ -383,6 +416,10 @@ Media Types</h3>
383416
Note: It is expected that all of the media types will also be deprecated in time,
384417
as appropriate <a>media features</a> are defined which capture their important differences.
385418

419+
<wpt>
420+
mq-deprecated-001.html
421+
</wpt>
422+
386423
<!--
387424
████████ ████████ ███ ████████ ██ ██ ████████ ████████ ██████
388425
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
@@ -683,6 +720,11 @@ Evaluating Media Features in a Range Context</h4>
683720
to avoid introducing unintended semantics.
684721
</div>
685722

723+
<wpt>
724+
mq-negative-range-001.html
725+
mq-negative-range-002.html
726+
</wpt>
727+
686728
<!--
687729
██ ██ ████ ██ ██ ██ ██ ██ ███ ██ ██
688730
███ ███ ██ ███ ██ ██ ███ ███ ██ ██ ██ ██
@@ -815,6 +857,11 @@ Combining Media Features {#media-conditions}
815857
the first one evaluates to false
816858
but the second evaluates to true.
817859

860+
<wpt>
861+
negation-001.html
862+
negation-002.html
863+
</wpt>
864+
818865
<!--
819866
██████ ██ ██ ██ ██ ████████ ███ ██ ██
820867
██ ██ ██ ██ ███ ██ ██ ██ ██ ██ ██
@@ -895,6 +942,13 @@ Syntax</h2>
895942
the <<general-enclosed>> branch must only be chosen if the input does not match either of the preceding branches.
896943
<span class='note'><<general-enclosed>> exists to allow for future expansion of the grammar in a reasonably compatible way.</span>
897944

945+
<wpt>
946+
match-media-parsing.html
947+
mq-case-insensitive-001.html
948+
mq-range-001.html
949+
mq-unknown-feature-custom-property.html
950+
</wpt>
951+
898952
Evaluating Media Queries {#evaluating}
899953
--------------------------------------
900954

@@ -1064,6 +1118,17 @@ Error Handling</h3>
10641118
with an invalid selector and contents.
10651119
</div>
10661120

1121+
<wpt>
1122+
mq-invalid-media-type-001.html
1123+
mq-invalid-media-type-002.html
1124+
mq-invalid-media-type-003.html
1125+
mq-invalid-media-type-004.html
1126+
mq-invalid-media-type-005.html
1127+
mq-invalid-media-type-006.html
1128+
mq-invalid-media-type-layer-001.html
1129+
mq-invalid-media-type-layer-002.html
1130+
</wpt>
1131+
10671132
<!--
10681133
████████ ████ ██ ██ ████████ ██ ██ ██████ ████ ███████ ██ ██ ██████
10691134
██ ██ ██ ███ ███ ██ ███ ██ ██ ██ ██ ██ ██ ███ ██ ██ ██
@@ -1120,6 +1185,13 @@ Width: the '@media/width' feature</h3>
11201185
The ''em'' value is relative to the <a>initial value</a> of 'font-size'.
11211186
</div>
11221187

1188+
<wpt>
1189+
media-query-matches-in-iframe.html
1190+
min-width-001.xht
1191+
min-width-tables-001.html
1192+
viewport-script-dynamic.html
1193+
</wpt>
1194+
11231195

11241196
<h3 id="height">
11251197
Height: the '@media/height' feature</h3>
@@ -1152,6 +1224,15 @@ Aspect-Ratio: the '@media/aspect-ratio' feature</h3>
11521224
The '@media/aspect-ratio' media feature is defined as the ratio of the value of the '@media/width' media feature
11531225
to the value of the '@media/height' media feature.
11541226

1227+
<wpt>
1228+
aspect-ratio-006.html
1229+
aspect-ratio-005.html
1230+
aspect-ratio-004.html
1231+
aspect-ratio-003.html
1232+
aspect-ratio-002.html
1233+
aspect-ratio-001.html
1234+
aspect-ratio-serialization.html
1235+
</wpt>
11551236

11561237
<h3 id='orientation'>
11571238
Orientation: the '@media/orientation' feature</h3>
@@ -1388,6 +1469,10 @@ Display Update Frequency: the '@media/update' feature</h3>
13881469
</pre>
13891470
</div>
13901471

1472+
<wpt>
1473+
update-media-feature.html
1474+
</wpt>
1475+
13911476
<h3 id='mf-overflow-block'>
13921477
Block-Axis Overflow: the '@media/overflow-block' feature</h3>
13931478

@@ -1438,6 +1523,10 @@ Block-Axis Overflow: the '@media/overflow-block' feature</h3>
14381523
is encouraged to contact the Working Group
14391524
so that extensions to this media feature may be considered.
14401525

1526+
<wpt>
1527+
overflow-media-features.html
1528+
</wpt>
1529+
14411530
<h3 id='mf-overflow-inline'>
14421531
Inline-Axis Overflow: the '@media/overflow-inline' feature</h3>
14431532

@@ -1699,6 +1788,14 @@ Color Display Quality: the '@media/color-gamut' feature</h3>
16991788
you can use this feature in a negated boolean-context fashion:
17001789
''not (color-gamut)''.
17011790

1791+
<wpt>
1792+
mq-gamut-001.html
1793+
mq-gamut-002.html
1794+
mq-gamut-003.html
1795+
mq-gamut-004.html
1796+
mq-gamut-005.html
1797+
</wpt>
1798+
17021799
<!--
17031800
████ ██ ██ ████████ ████████ ████████ ███ ██████ ████████ ████ ███████ ██ ██
17041801
██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██
@@ -2165,6 +2262,12 @@ device-aspect-ratio</h3>
21652262
</pre>
21662263
</div>
21672264

2265+
<wpt>
2266+
device-aspect-ratio-002.html
2267+
device-aspect-ratio-003.html
2268+
device-aspect-ratio-004.html
2269+
device-aspect-ratio-006.html
2270+
</wpt>
21682271

21692272
<h2 id="changes" class="no-num">
21702273
Changes</h2>
@@ -2418,3 +2521,24 @@ Yes, as described in the prose above this questionnaire.
24182521
<dt>Does this specification allow downgrading default security characteristics?
24192522
<dd>No.
24202523
</dl>
2524+
2525+
<wpt hidden title="Media Queries 5 tests">
2526+
at-custom-media-cssom.html
2527+
display-mode.html
2528+
dynamic-range.html
2529+
forced-colors.html
2530+
inverted-colors.html
2531+
prefers-color-scheme-svg-as-image.html
2532+
prefers-color-scheme-svg-image-normal-with-meta-dark.html
2533+
prefers-color-scheme-svg-image-normal-with-meta-light.html
2534+
prefers-color-scheme-svg-image-normal.html
2535+
prefers-color-scheme-svg-image.html
2536+
prefers-color-scheme.html
2537+
prefers-contrast.html
2538+
prefers-reduced-data.html
2539+
prefers-reduced-motion.html
2540+
prefers-reduced-transparency.html
2541+
scripting-print-noscript.html
2542+
scripting-print-script.html
2543+
scripting.html
2544+
</wpt>

0 commit comments

Comments
 (0)