2 <p>Overloading ::-webkit-media-controls display property. PASS if it doesn't crash.
</p>
4 var displayValues
= ["-webkit-box", "-webkit-flex", "-webkit-inline-box",
5 "-webkit-inline-flex", "block", "flex", "grid", "inline", "inline-block",
6 "inline-flex", "inline-grid", "inline-table", "list-item", "none", "table",
7 "table-caption", "table-cell", "table-column", "table-column-group",
8 "table-footer-group", "table-header-group", "table-row", "table-row-group"];
10 var styleSheet
= "video { width: 200px; height: 30px; }\n";
12 displayValues
.forEach(function(value
, idx
) {
13 var video
= document
.createElement("video");
14 video
.controls
= true;
15 video
.id
= "video" + idx
;
16 document
.body
.appendChild(video
);
18 styleSheet
+= "#video" + idx
+ "::-webkit-media-controls { display: " + value
+ " !important; }\n";
21 var style
= document
.createElement("style");
22 style
.textContent
= styleSheet
;
23 document
.head
.appendChild(style
);