OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <script> | 3 <script> |
4 if (window.testRunner) | 4 if (window.testRunner) |
5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); | 5 testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); |
6 </script> | 6 </script> |
7 <link href="resources/grid.css" rel="stylesheet"> | 7 <link href="resources/grid.css" rel="stylesheet"> |
8 <style> | 8 <style> |
9 .grid { | 9 .grid { |
10 grid-definition-columns: 100px 300px; | 10 grid-template-columns: 100px 300px; |
11 grid-definition-rows: 50px 150px; | 11 grid-template-rows: 50px 150px; |
12 height: 200px; | 12 height: 200px; |
13 width: 400px; | 13 width: 400px; |
14 } | 14 } |
15 | 15 |
16 .calcWidth { | 16 .calcWidth { |
17 width: -webkit-calc(80% + 20%); | 17 width: -webkit-calc(80% + 20%); |
18 height: 15px; | 18 height: 15px; |
19 } | 19 } |
20 | 20 |
21 .calcHeight { | 21 .calcHeight { |
(...skipping 33 matching lines...) Loading... |
55 </div> | 55 </div> |
56 | 56 |
57 <div class="grid"> | 57 <div class="grid"> |
58 <div class="firstRowFirstColumn calcWidth verticalRL" data-expected-width="1
00" data-expected-height="15"></div> | 58 <div class="firstRowFirstColumn calcWidth verticalRL" data-expected-width="1
00" data-expected-height="15"></div> |
59 <div class="firstRowSecondColumn calcHeight" data-expected-width="15" data-e
xpected-height="60"></div> | 59 <div class="firstRowSecondColumn calcHeight" data-expected-width="15" data-e
xpected-height="60"></div> |
60 <div class="secondRowFirstColumn calcHeightAndWidth verticalRL" data-expecte
d-width="100" data-expected-height="150"></div> | 60 <div class="secondRowFirstColumn calcHeightAndWidth verticalRL" data-expecte
d-width="100" data-expected-height="150"></div> |
61 <div class="secondRowSecondColumn calcHeightAndWidth" data-expected-width="2
60" data-expected-height="150"></div> | 61 <div class="secondRowSecondColumn calcHeightAndWidth" data-expected-width="2
60" data-expected-height="150"></div> |
62 </div> | 62 </div> |
63 </body> | 63 </body> |
64 </html> | 64 </html> |
OLD | NEW |