Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(167)

Side by Side Diff: LayoutTests/media/webkit-media-controls-display.html

Issue 716733002: Merge 184652 "Disallow non-flexbox child renderers for RenderMedia" (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2171/
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/media/webkit-media-controls-display-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <p>Overloading ::-webkit-media-controls display property. PASS if it doesn't cra sh.</p> 2 <p>Overloading ::-webkit-media-controls display property. PASS if it doesn't cra sh.</p>
3 <script> 3 <script>
4 var displayValues = ["-webkit-box", "-webkit-flex", "-webkit-inline-box", 4 var displayValues = ["-webkit-box", "-webkit-flex", "-webkit-inline-box",
5 "-webkit-inline-flex", "block", "flex", "grid", "inline", "inline-block", 5 "-webkit-inline-flex", "block", "flex", "grid", "inline", "inline-block",
6 "inline-flex", "inline-grid", "inline-table", "list-item", "none", "table", 6 "inline-flex", "inline-grid", "inline-table", "list-item", "none", "table",
7 "table-caption", "table-cell", "table-column", "table-column-group", 7 "table-caption", "table-cell", "table-column", "table-column-group",
8 "table-footer-group", "table-header-group", "table-row", "table-row-group"]; 8 "table-footer-group", "table-header-group", "table-row", "table-row-group"];
9 9
10 var styleSheet = "video { width: 200px; height: 30px; }\n"; 10 var styleSheet = "video { width: 200px; height: 30px; }\n";
11 11
12 displayValues.forEach(function(value, idx) { 12 displayValues.forEach(function(value, idx) {
13 var video = document.createElement("video"); 13 var video = document.createElement("video");
14 video.controls = true; 14 video.controls = true;
15 video.id = "video" + idx; 15 video.id = "video" + idx;
16 document.body.appendChild(video); 16 document.body.appendChild(video);
17 17
18 styleSheet += "#video" + idx + "::-webkit-media-controls { display: " + valu e + " !important; }\n"; 18 styleSheet += "#video" + idx + "::-webkit-media-controls { display: " + valu e + " !important; }\n";
19 }); 19 });
20 20
21 var style = document.createElement("style"); 21 var style = document.createElement("style");
22 style.textContent = styleSheet; 22 style.textContent = styleSheet;
23 document.head.appendChild(style); 23 document.head.appendChild(style);
24 </script> 24 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/media/webkit-media-controls-display-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698