1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 // InactivePropertyHelper `cue-pseudo-element` test cases.
8 // "background-attachment",
9 // "background-blend-mode",
11 // "background-color",
12 // "background-image",
13 // "background-origin",
14 // "background-position",
15 // "background-position-x",
16 // "background-position-y",
17 // "background-repeat",
26 // "font-variant-alternates",
27 // "font-variant-caps",
28 // "font-variant-east-asian",
29 // "font-variant-ligatures",
30 // "font-variant-numeric",
31 // "font-variant-position",
41 // "text-combine-upright",
43 // "text-decoration-color",
44 // "text-decoration-line",
45 // "text-decoration-style",
46 // "text-decoration-thickness",
53 info: "background is active on ::cue",
54 property: "background",
56 rules: ["video::cue { background: linear-gradient(white, black); }"],
60 info: "background-attachment is active on ::cue",
61 property: "background-attachment",
63 rules: ["video::cue { background-attachment: fixed; }"],
67 info: "background-blend-mode is active on ::cue",
68 property: "background-blend-mode",
70 rules: ["video::cue { background-blend-mode: difference; }"],
74 info: "background-clip is active on ::cue",
75 property: "background-clip",
77 rules: ["video::cue { background-clip: padding-box; }"],
81 info: "background-color is active on ::cue",
82 property: "background-color",
84 rules: ["video::cue { background-color: red; }"],
88 info: "background-image is active on ::cue",
89 property: "background-image",
92 "video::cue { background-image: url('https://example.com/image.png'); }",
97 info: "background-origin is active on ::cue",
98 property: "background-origin",
100 rules: ["video::cue { background-origin: padding-box; }"],
104 info: "background-position is active on ::cue",
105 property: "background-position",
107 rules: ["video::cue { background-position: 0 0; }"],
111 info: "background-position-x is active on ::cue",
112 property: "background-position-x",
114 rules: ["video::cue { background-position-x: 0; }"],
118 info: "background-position-y is active on ::cue",
119 property: "background-position-y",
121 rules: ["video::cue { background-position-y: 0; }"],
125 info: "background-repeat is active on ::cue",
126 property: "background-repeat",
128 rules: ["video::cue { background-repeat: repeat-y; }"],
132 info: "background-size is active on ::cue",
133 property: "background-size",
135 rules: ["video::cue { background-size: 100% 100%; }"],
139 info: "color is active on ::cue",
142 rules: ["video::cue { color: red; }"],
146 info: "font is active on ::cue",
149 rules: ["video::cue { font: 1em sans-serif; }"],
153 info: "font-family is active on ::cue",
154 property: "font-family",
156 rules: ["video::cue { font-family: sans-serif; }"],
160 info: "font-size is active on ::cue",
161 property: "font-size",
163 rules: ["video::cue { font-size: 1em; }"],
167 info: "font-stretch is active on ::cue",
168 property: "font-stretch",
170 rules: ["video::cue { font-stretch: ultra-condensed; }"],
174 info: "font-style is active on ::cue",
175 property: "font-style",
177 rules: ["video::cue { font-style: italic; }"],
181 info: "font-variant is active on ::cue",
182 property: "font-variant",
184 rules: ["video::cue { font-variant: small-caps; }"],
188 info: "font-variant-alternates is active on ::cue",
189 property: "font-variant-alternates",
191 rules: ["video::cue { font-variant-alternates: slashed-zero; }"],
195 info: "font-variant-caps is active on ::cue",
196 property: "font-variant-caps",
198 rules: ["video::cue { font-variant-caps: all-small-caps; }"],
202 info: "font-variant-east-asian is active on ::cue",
203 property: "font-variant-east-asian",
205 rules: ["video::cue { font-variant-east-asian: ruby; }"],
209 info: "font-variant-ligatures is active on ::cue",
210 property: "font-variant-ligatures",
212 rules: ["video::cue { font-variant-ligatures: common-ligatures; }"],
216 info: "font-variant-numeric is active on ::cue",
217 property: "font-variant-numeric",
219 rules: ["video::cue { font-variant-numeric: ordinal; }"],
223 info: "font-variant-position is active on ::cue",
224 property: "font-variant-position",
226 rules: ["video::cue { font-variant-position: sub; }"],
230 info: "font-weight is active on ::cue",
231 property: "font-weight",
233 rules: ["video::cue { font-weight: bold; }"],
237 info: "line-height is active on ::cue",
238 property: "line-height",
240 rules: ["video::cue { line-height: 1.2; }"],
244 info: "opacity is active on ::cue",
247 rules: ["video::cue { opacity: 0.8; }"],
251 info: "outline is active on ::cue",
254 rules: ["video::cue { outline: 1px solid red; }"],
258 info: "outline-color is active on ::cue",
259 property: "outline-color",
261 rules: ["video::cue { outline-color: red; }"],
265 info: "outline-offset is active on ::cue",
266 property: "outline-offset",
268 rules: ["video::cue { outline-offset: 1px; }"],
272 info: "outline-style is active on ::cue",
273 property: "outline-style",
275 rules: ["video::cue { outline-style: solid; }"],
279 info: "outline-width is active on ::cue",
280 property: "outline-width",
282 rules: ["video::cue { outline-width: 1px; }"],
286 info: "ruby-position is active on ::cue",
287 property: "ruby-position",
289 rules: ["video::cue { ruby-position: over; }"],
293 info: "text-combine-upright is active on ::cue",
294 property: "text-combine-upright",
296 rules: ["video::cue { text-combine-upright: all; }"],
300 info: "text-decoration is active on ::cue",
301 property: "text-decoration",
303 rules: ["video::cue { text-decoration: 1px underline red; }"],
307 info: "text-decoration-color is active on ::cue",
308 property: "text-decoration-color",
310 rules: ["video::cue { text-decoration-color: red; }"],
314 info: "text-decoration-line is active on ::cue",
315 property: "text-decoration-line",
317 rules: ["video::cue { text-decoration-line: underline; }"],
321 info: "text-decoration-style is active on ::cue",
322 property: "text-decoration-style",
324 rules: ["video::cue { text-decoration-style: wavy; }"],
328 info: "text-decoration-thickness is active on ::cue",
329 property: "text-decoration-thickness",
331 rules: ["video::cue { text-decoration-thickness: 1px; }"],
335 info: "text-shadow is active on ::cue",
336 property: "text-shadow",
338 rules: ["video::cue { text-shadow: 1px 1px 1px red; }"],
342 info: "visibility is active on ::cue",
343 property: "visibility",
345 rules: ["video::cue { visibility: hidden; }"],
349 info: "white-space is active on ::cue",
350 property: "white-space",
352 rules: ["video::cue { white-space: nowrap; }"],
356 info: "border is inactive on ::cue",
359 rules: ["video::cue { border: 1px solid red; }"],
361 expectedMsgId: "inactive-css-cue-pseudo-element-not-supported",
364 info: "display is inactive on ::cue",
367 rules: ["video::cue { display: grid; }"],
369 expectedMsgId: "inactive-css-cue-pseudo-element-not-supported",
372 info: "custom property is active on ::cue",
373 property: "--my-var",
375 rules: ["video::cue { --my-var: red; }"],