OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE HTML> | |
2 <script src="../../resources/testharness.js"></script> | |
3 <script src="../../resources/testharnessreport.js"></script> | |
4 <script src="../../resources/check-layout-th.js"></script> | |
5 <style> | |
6 .block { | |
7 width: 200px; | |
8 height: 200px; | |
9 background: lightgrey; | |
10 } | |
11 | |
12 .flex { display: flex; } | |
13 .grid { | |
14 display: grid; | |
15 grid: 100px / 150px; | |
16 } | |
17 | |
18 .item { | |
19 display: table; | |
20 background: lime; | |
21 border-spacing: 0px; | |
22 font: 10px/1 Ahem; | |
23 } | |
24 | |
25 td { padding: 0px; } | |
26 caption { background: grey; } | |
27 | |
28 </style> | |
29 <body onload="checkLayout('.block')"> | |
30 | |
31 <p>This test verifies that table sizing logic considers stretch alignment when c omputing its width and height.</p> | |
32 | |
33 <p>Regular block container of a table element and 1 implicit row and column.<br> The align-self property doesn't apply to block-level boxes.</br>The justify-self propery has its initial/default value 'normal', which behaves like 'start'.</p> | |
dgrogan
2016/11/30 01:03:22
s/propery/property/ and 2 other places
| |
34 <div class="block"> | |
35 <div class="item" data-expected-width="100" data-expected-height="10">table cell</div> | |
36 </div> | |
37 | |
38 <br><br> | |
39 | |
40 <p>Regular block container of an empty table.<br>The align-self property doesn't apply to block-level boxes.</br>The justify-self propery has its initial/defaul t value 'normal', which behaves like 'start'.</p> | |
41 <div class="block"> | |
42 <table class="item" data-expected-width="70" data-expected-height="10"> | |
43 <caption>caption</caption> | |
44 </table> | |
45 </div> | |
46 | |
47 <br><br> | |
48 | |
49 <p>Regular block container of a table element and 1 explicit row and column.<br> The align-self property doesn't apply to block-level boxes.</br>The justify-self propery has its initial/default value 'normal', which behaves like 'start'.</p> | |
50 <div class="block"> | |
51 <table class="item" data-expected-width="100" data-expected-height="20"> | |
52 <tr data-expected-width="100" data-expected-height="10"> | |
53 <td>table cell</td> | |
54 </tr> | |
55 <caption>caption</caption> | |
56 </table> | |
57 </div> | |
58 | |
59 <br><br> | |
60 | |
61 <p>Grid container of table element and 1 implicit row and column.<br>Both the al ign-self and justify-self properties have their initial/default value 'normal', which behaves like 'stretch'.</p> | |
62 <div class="block grid"> | |
63 <div class="item" data-expected-width="150" data-expected-height="100">table cell</div> | |
64 </div> | |
65 | |
66 <br><br> | |
67 | |
68 <p>Grid container of an empty table element.<br>Both the align-self and justify- self properties have their initial/default value 'normal', which behaves like 's tretch'.</p> | |
69 <div class="block grid"> | |
70 <table class="item" data-expected-width="150" data-expected-height="110"> | |
71 <caption>caption</caption> | |
72 </table> | |
73 </div> | |
74 | |
75 <br><br> | |
76 | |
77 <p>Grid container of table element and 1 explicit row and column.<br>Both the al ign-self and justify-self properties have their initial/default value 'normal', which behaves like 'stretch'.</p> | |
78 <div class="block grid"> | |
79 <table class="item" data-expected-width="150" data-expected-height="110"> | |
80 <tr data-expected-width="150" data-expected-height="100"> | |
81 <td>table cell</td> | |
82 </tr> | |
83 <caption>caption</caption> | |
84 </table> | |
85 </div> | |
86 | |
87 <br><br> | |
88 | |
89 <p>Flex container of table element and 1 implicit row and column.<br>Both the al ign-self and justify-self properties have their initial/default value 'normal', which behaves like 'stretch'.</p> | |
90 <div class="block flex"> | |
91 <div class="item" class="item" data-expected-width="200" data-expected-heigh t="200">table cell</div> | |
92 </div> | |
93 | |
94 <br><br> | |
95 | |
96 <p>Flex container of an empty table element.<br>Both the align-self and justify- self properties have their initial/default value 'normal', which behaves like 's tretch'.</p> | |
97 <div class="block flex"> | |
98 <table class="item" data-expected-width="200" data-expected-height="210"> | |
99 <caption>caption</caption> | |
100 </table> | |
101 </div> | |
102 | |
103 <br><br> | |
104 | |
105 <p>Flex container of table element and 1 explicit row and column.<br>Both the al ign-self and justify-self properties have their initial/default value 'normal', which behaves like 'stretch'.</p> | |
106 <div class="block flex"> | |
107 <table class="item" class="item" data-expected-width="200" data-expected-hei ght="210"> | |
108 <tr data-expected-width="200" data-expected-height="200"> | |
109 <td>table cell</td> | |
110 </tr> | |
111 <caption>caption</caption> | |
112 </table> | |
113 </div> | |
114 | |
115 </body> | |
116 </html> | |
OLD | NEW |