OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 .cleared-container { | 5 .cleared-container { |
6 font: 30px/1 Ahem; | 6 font: 30px/1 Ahem; |
7 clear: both; | 7 clear: both; |
8 list-style: none; | 8 list-style: none; |
9 padding: 0; | 9 padding: 0; |
10 margin: 1em 0 0; | 10 margin: 1em 0 0; |
11 } | 11 } |
12 .floated-child { | 12 .floated-child { |
13 float: left; | 13 float: left; |
14 width: 33.33%; | 14 width: 33.33%; |
15 background: rgb(200,200,200); | 15 background: rgb(200,200,200); |
16 } | 16 } |
17 </style> | 17 </style> |
18 </head> | 18 </head> |
19 <body> | 19 <body> |
20 <script src="../../../resources/check-layout.js"></script> | 20 <script src="../../../resources/check-layout.js"></script> |
21 <ul class="cleared-container"> | 21 <ul class="cleared-container"> |
22 <li class="floated-child" data-offset-y="30px">These words should</li> | 22 <li class="floated-child" data-offset-y="30">These words should</li> |
23 <li class="floated-child" data-offset-y="30px">be all on the </li> | 23 <li class="floated-child" data-offset-y="30">be all on the </li> |
24 <li class="floated-child" data-offset-y="30px">same line.</li> | 24 <li class="floated-child" data-offset-y="30">same line.</li> |
25 </ul> | 25 </ul> |
26 <p> https://bugs.webkit.org/show_bug.cgi?id=109476 : only the first floated
child of a self-collapsing block needs to account | 26 <p> https://bugs.webkit.org/show_bug.cgi?id=109476 : only the first floated
child of a self-collapsing block needs to account |
27 for its collapsed margin. </p> | 27 for its collapsed margin. </p> |
28 <script> | 28 <script> |
29 checkLayout('.floated-child'); | 29 checkLayout('.floated-child'); |
30 </script> | 30 </script> |
31 </body> | 31 </body> |
32 </html> | 32 </html> |
33 | 33 |
OLD | NEW |