Chromium Code Reviews| Index: LayoutTests/media/webkit-media-controls-display-expected.html |
| diff --git a/LayoutTests/media/webkit-media-controls-display-expected.html b/LayoutTests/media/webkit-media-controls-display-expected.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..f5ea3ee1f06f4432b16adaf5afd9e7ce754366ee |
| --- /dev/null |
| +++ b/LayoutTests/media/webkit-media-controls-display-expected.html |
| @@ -0,0 +1,24 @@ |
| +<!DOCTYPE html> |
| +<p>Overloading ::-webkit-media-controls display property. PASS if it doesn't crash.</p> |
| +<style> |
| +video { width: 200px; height: 30px; } |
| +</style> |
| +<script> |
| +var displayValues = ["-webkit-box", "-webkit-flex", "-webkit-inline-box", |
| + "-webkit-inline-flex", "block", "flex", "grid", "inline", "inline-block", |
| + "inline-flex", "inline-grid", "inline-table", "list-item", "none", "table", |
| + "table-caption", "table-cell", "table-column", "table-column-group", |
| + "table-footer-group", "table-header-group", "table-row", "table-row-group"]; |
| + |
| +displayValues.forEach(function(value) { |
| + var video = document.createElement("video"); |
|
rune
2014/10/30 12:15:19
I'd probably just write out the video elements in
philipj_slow
2014/10/30 12:28:58
I thought this way would make it more explicit whi
|
| + switch (value) { |
| + case "-webkit-flex": |
| + case "-webkit-inline-flex": |
| + case "flex": |
| + case "inline-flex": |
| + video.controls = true; |
| + } |
| + document.body.appendChild(video); |
| +}); |
| +</script> |