| OLD | NEW |
| 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> | 4 <script> |
| 5 if (window.testRunner) | 5 if (window.testRunner) |
| 6 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); | 6 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); |
| 7 </script> | 7 </script> |
| 8 <link href="resources/grid.css" rel="stylesheet"> | 8 <link href="resources/grid.css" rel="stylesheet"> |
| 9 <style> | 9 <style> |
| 10 .gridAutoFlowInherit { | 10 .gridAutoFlowInherit { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 <div class="grid gridAutoFlowInherit" id="gridAutoFlowInherit"></div> | 29 <div class="grid gridAutoFlowInherit" id="gridAutoFlowInherit"></div> |
| 30 </div> | 30 </div> |
| 31 <div class="grid gridAutoFlowColumn"> | 31 <div class="grid gridAutoFlowColumn"> |
| 32 <div><div class="grid gridAutoFlowInherit" id="gridAutoFlowNoInherit"></div>
<div> | 32 <div><div class="grid gridAutoFlowInherit" id="gridAutoFlowNoInherit"></div>
<div> |
| 33 </div> | 33 </div> |
| 34 <div class="grid gridAutoFlowColumns" id="gridAutoFlowColumns"></div> | 34 <div class="grid gridAutoFlowColumns" id="gridAutoFlowColumns"></div> |
| 35 <div class="grid gridAutoFlowRows" id="gridAutoFlowRows"></div> | 35 <div class="grid gridAutoFlowRows" id="gridAutoFlowRows"></div> |
| 36 <script> | 36 <script> |
| 37 description('Test that setting and getting grid-auto-flow works as expected'
); | 37 description('Test that setting and getting grid-auto-flow works as expected'
); |
| 38 | 38 |
| 39 debug("Test getting -webkit-auto-flow set through CSS"); | 39 debug("Test getting auto-flow set through CSS"); |
| 40 var gridAutoFlowNone = document.getElementById("gridAutoFlowNone"); | 40 var gridAutoFlowNone = document.getElementById("gridAutoFlowNone"); |
| 41 shouldBe("window.getComputedStyle(gridAutoFlowNone, '').getPropertyValue('gr
id-auto-flow')", "'none'"); | 41 shouldBe("window.getComputedStyle(gridAutoFlowNone, '').getPropertyValue('gr
id-auto-flow')", "'none'"); |
| 42 | 42 |
| 43 var gridAutoFlowColumn = document.getElementById("gridAutoFlowColumn"); | 43 var gridAutoFlowColumn = document.getElementById("gridAutoFlowColumn"); |
| 44 shouldBe("window.getComputedStyle(gridAutoFlowColumn, '').getPropertyValue('
grid-auto-flow')", "'column'"); | 44 shouldBe("window.getComputedStyle(gridAutoFlowColumn, '').getPropertyValue('
grid-auto-flow')", "'column'"); |
| 45 | 45 |
| 46 var gridAutoFlowRow = document.getElementById("gridAutoFlowRow"); | 46 var gridAutoFlowRow = document.getElementById("gridAutoFlowRow"); |
| 47 shouldBe("window.getComputedStyle(gridAutoFlowRow, '').getPropertyValue('gri
d-auto-flow')", "'row'"); | 47 shouldBe("window.getComputedStyle(gridAutoFlowRow, '').getPropertyValue('gri
d-auto-flow')", "'row'"); |
| 48 | 48 |
| 49 var gridAutoFlowColumns = document.getElementById("gridAutoFlowColumns"); | 49 var gridAutoFlowColumns = document.getElementById("gridAutoFlowColumns"); |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 debug(""); | 82 debug(""); |
| 83 debug("Test setting grid-auto-flow to 'initial' through JS"); | 83 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. | 84 // Reusing the value so that we can check that it is set back to its initial
value. |
| 85 element.style.gridAutoFlow = "initial"; | 85 element.style.gridAutoFlow = "initial"; |
| 86 shouldBe("window.getComputedStyle(element, '').getPropertyValue('grid-auto-f
low')", "'none'"); | 86 shouldBe("window.getComputedStyle(element, '').getPropertyValue('grid-auto-f
low')", "'none'"); |
| 87 </script> | 87 </script> |
| 88 <script src="../js/resources/js-test-post.js"></script> | 88 <script src="../js/resources/js-test-post.js"></script> |
| 89 </body> | 89 </body> |
| 90 </html> | 90 </html> |
| OLD | NEW |