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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/table/table-size-must-consider-stretch-alignment.html

Issue 2528253003: [table] Stretching tables when needed due to self-alignment properties (Closed)
Patch Set: Created 4 years 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
(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 {
26 border-spacing: 0px;
mstensho (USE GERRIT) 2016/11/28 12:54:31 border-spacing doesn't apply to table cells.
jfernandez 2016/11/29 16:03:33 Done.
27 padding: 0px;
28 }
29 caption { background: grey; }
30
31 </style>
32 <body onload="checkLayout('.block')">
33
34 <p>This test verifies that table sizing logic considers stretch alignment when c omputing its width and height.</p>
35
36 <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>
37 <div class="block">
38 <div class="item" data-expected-width="100" data-expected-height="10">table cell</div>
39 </div>
40
41 <br><br>
42
43 <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>
44 <div class="block">
45 <table class="item" data-expected-width="70" data-expected-height="10">
46 <caption>caption</caption>
47 </table>
48 </div>
49
50 <br><br>
51
52 <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>
53 <div class="block">
54 <table class="item" data-expected-width="100" data-expected-height="20">
55 <tr data-expected-width="100" data-expected-height="10">
56 <td>table cell</td>
57 </tr>
58 <caption>caption</caption>
59 </table>
60 </div>
61
62 <br><br>
63
64 <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>
65 <div class="block grid">
66 <div class="item" data-expected-width="150" data-expected-height="100">table cell</div>
67 </div>
68
69 <br><br>
70
71 <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>
72 <div class="block grid">
73 <table class="item" data-expected-width="150" data-expected-height="110">
74 <caption>caption</caption>
75 </table>
76 </div>
77
78 <br><br>
79
80 <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>
81 <div class="block grid">
82 <table class="item" data-expected-width="150" data-expected-height="110">
83 <tr data-expected-width="150" data-expected-height="100">
84 <td>table cell</td>
85 </tr>
86 <caption>caption</caption>
87 </table>
88 </div>
89
90 <br><br>
91
92 <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>
93 <div class="block flex">
94 <div class="item" class="item" data-expected-width="200" data-expected-heigh t="200">table cell</div>
95 </div>
96
97 <br><br>
98
99 <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>
100 <div class="block flex">
101 <table class="item" data-expected-width="200" data-expected-height="210">
102 <caption>caption</caption>
103 </table>
104 </div>
105
106 <br><br>
107
108 <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>
109 <div class="block flex">
110 <table class="item" class="item" data-expected-width="200" data-expected-hei ght="210">
111 <tr data-expected-width="200" data-expected-height="200">
112 <td>table cell</td>
113 </tr>
114 <caption>caption</caption>
115 </table>
116 </div>
117
118 </body>
119 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698