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

Side by Side Diff: LayoutTests/fast/css-grid-layout/grid-auto-flow-get-set.html

Issue 180523004: [CSS Grid Layout] Remove legacy WebKitCSSGridLayoutEnabled flag from the Layout Tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 months 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
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script>
5 if (window.testRunner)
6 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1);
7 </script>
8 <link href="resources/grid.css" rel="stylesheet"> 4 <link href="resources/grid.css" rel="stylesheet">
9 <style> 5 <style>
10 .gridAutoFlowInherit { 6 .gridAutoFlowInherit {
11 grid-auto-flow: inherit; 7 grid-auto-flow: inherit;
12 } 8 }
13 /* Bad values. */ 9 /* Bad values. */
14 .gridAutoFlowRows { 10 .gridAutoFlowRows {
15 grid-auto-flow: rows; 11 grid-auto-flow: rows;
16 } 12 }
17 .gridAutoFlowColumns { 13 .gridAutoFlowColumns {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 shouldBe("window.getComputedStyle(element, '').getPropertyValue('grid-auto-f low')", "'row'"); 76 shouldBe("window.getComputedStyle(element, '').getPropertyValue('grid-auto-f low')", "'row'");
81 77
82 debug(""); 78 debug("");
83 debug("Test setting grid-auto-flow to 'initial' through JS"); 79 debug("Test setting grid-auto-flow to 'initial' through JS");
84 // Reusing the value so that we can check that it is set back to its initial value. 80 // Reusing the value so that we can check that it is set back to its initial value.
85 element.style.gridAutoFlow = "initial"; 81 element.style.gridAutoFlow = "initial";
86 shouldBe("window.getComputedStyle(element, '').getPropertyValue('grid-auto-f low')", "'none'"); 82 shouldBe("window.getComputedStyle(element, '').getPropertyValue('grid-auto-f low')", "'none'");
87 </script> 83 </script>
88 </body> 84 </body>
89 </html> 85 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698