Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <p>Overloading ::-webkit-media-controls display property. PASS if it doesn't cra sh.</p> | |
| 3 <style> | |
| 4 video { width: 200px; height: 30px; } | |
| 5 </style> | |
| 6 <script> | |
| 7 var displayValues = ["-webkit-box", "-webkit-flex", "-webkit-inline-box", | |
| 8 "-webkit-inline-flex", "block", "flex", "grid", "inline", "inline-block", | |
| 9 "inline-flex", "inline-grid", "inline-table", "list-item", "none", "table", | |
| 10 "table-caption", "table-cell", "table-column", "table-column-group", | |
| 11 "table-footer-group", "table-header-group", "table-row", "table-row-group"]; | |
| 12 | |
| 13 displayValues.forEach(function(value) { | |
| 14 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
| |
| 15 switch (value) { | |
| 16 case "-webkit-flex": | |
| 17 case "-webkit-inline-flex": | |
| 18 case "flex": | |
| 19 case "inline-flex": | |
| 20 video.controls = true; | |
| 21 } | |
| 22 document.body.appendChild(video); | |
| 23 }); | |
| 24 </script> | |
| OLD | NEW |