OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <link href="resources/grid.css" rel="stylesheet"> |
| 3 <link href="resources/grid-alignment.css" rel="stylesheet"> |
| 4 <link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel
="stylesheet"> |
| 5 <style> |
| 6 .grid { font: 20px/1 Ahem; } |
| 7 .item { margin: 10px 5px 5px 15px; } |
| 8 </style> |
| 9 <script src="../../resources/testharness.js"></script> |
| 10 <script src="../../resources/testharnessreport.js"></script> |
| 11 <script src="../../resources/check-layout-th.js"></script> |
| 12 |
| 13 <body onload="checkLayout('.grid')"> |
| 14 <div id="log"></div> |
| 15 <p>This test checks that grid items' margin is computed correctly for content-si
zed tracks when using different writing modes.</p> |
| 16 |
| 17 <div style="position: relative"> |
| 18 <div class="grid fit-content itemsStart" data-expected-width="40" data-expec
ted-height="140"> |
| 19 <div class="item verticalLR" data-offset-x="15" data-offset-y="10" data
-expected-width="20" data-expected-height="20">X</div> |
| 20 <div class="item verticalLR" data-offset-x="15" data-offset-y="45" data
-expected-width="20" data-expected-height="20">X</div> |
| 21 <div class="item verticalLR" data-offset-x="15" data-offset-y="80" data
-expected-width="20" data-expected-height="20">X</div> |
| 22 <div class="item verticalLR" data-offset-x="15" data-offset-y="115" data
-expected-width="20" data-expected-height="20">X</div> |
| 23 </div> |
| 24 </div> |
| 25 |
| 26 <br> |
| 27 |
| 28 <div style="position: relative"> |
| 29 <div class="grid gridAutoFlowColumnSparse fit-content itemsStart" data-expec
ted-width="160" data-expected-height="35"> |
| 30 <div class="item verticalLR" data-offset-x="15" data-offset-y="10" data
-expected-width="20" data-expected-height="20">X</div> |
| 31 <div class="item verticalLR" data-offset-x="55" data-offset-y="10" data
-expected-width="20" data-expected-height="20">X</div> |
| 32 <div class="item verticalLR" data-offset-x="95" data-offset-y="10" data
-expected-width="20" data-expected-height="20">X</div> |
| 33 <div class="item verticalLR" data-offset-x="135" data-offset-y="10" data
-expected-width="20" data-expected-height="20">X</div> |
| 34 </div> |
| 35 </div> |
| 36 |
| 37 <br> |
| 38 |
| 39 <div style="position: relative"> |
| 40 <div class="grid fit-content verticalLR itemsStart" data-expected-width="160
" data-expected-height="35"> |
| 41 <div class="item horizontalTB" data-offset-x="15" data-offset-y="10" da
ta-expected-width="20" data-expected-height="20">X</div> |
| 42 <div class="item horizontalTB" data-offset-x="55" data-offset-y="10" da
ta-expected-width="20" data-expected-height="20">X</div> |
| 43 <div class="item horizontalTB" data-offset-x="95" data-offset-y="10" da
ta-expected-width="20" data-expected-height="20">X</div> |
| 44 <div class="item horizontalTB" data-offset-x="135" data-offset-y="10" da
ta-expected-width="20" data-expected-height="20">X</div> |
| 45 </div> |
| 46 </div> |
| 47 |
| 48 <br> |
| 49 |
| 50 <div style="position: relative"> |
| 51 <div class="grid gridAutoFlowColumnSparse fit-content verticalLR itemsStart"
data-expected-width="40" data-expected-height="140"> |
| 52 <div class="item horizontalTB" data-offset-x="15" data-offset-y="10" da
ta-expected-width="20" data-expected-height="20">X</div> |
| 53 <div class="item horizontalTB" data-offset-x="15" data-offset-y="45" da
ta-expected-width="20" data-expected-height="20">X</div> |
| 54 <div class="item horizontalTB" data-offset-x="15" data-offset-y="80" da
ta-expected-width="20" data-expected-height="20">X</div> |
| 55 <div class="item horizontalTB" data-offset-x="15" data-offset-y="115" da
ta-expected-width="20" data-expected-height="20">X</div> |
| 56 </div> |
| 57 </div> |
| 58 |
| 59 </body> |
OLD | NEW |