Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / overflow / table-overflow-float.html
blob252c630444a0cd953eaaeb0464880f8b696e295c
1 <html>
2 <head>
4 <style type="text/css">
5 .hey {
6 float: left;
8 .box {
9 overflow: auto;
10 height: 100px;
11 width: 100px;
13 td {
14 background-color: #ccc;
16 </style>
18 </head>
19 <body>
21 <table><tr><td>
23 <div class="box">
25 <span class="hey">stuff </span>
26 <span class="hey">stuff </span>
27 <span class="hey">stuff </span>
28 <span class="hey">stuff </span>
29 <span class="hey">stuff </span>
30 <span class="hey">stuff </span>
31 <span class="hey">stuff </span>
32 <span class="hey">stuff </span>
33 <span class="hey">stuff </span>
34 <span class="hey">stuff </span>
35 <span class="hey">stuff </span>
36 <span class="hey">stuff </span>
37 <span class="hey">stuff </span>
38 <span class="hey">stuff </span>
39 <span class="hey">stuff </span>
40 <span class="hey">stuff </span>
41 <span class="hey">stuff </span>
42 <span class="hey">stuff </span>
43 <span class="hey">stuff </span>
44 <span class="hey">stuff </span>
45 <span class="hey">stuff </span>
46 <span class="hey">stuff </span>
47 <span class="hey">stuff </span>
48 <span class="hey">stuff </span>
49 <span class="hey">stuff </span>
50 <span class="hey">stuff </span>
51 <span class="hey">stuff </span>
52 <span class="hey">stuff </span>
53 <span class="hey">stuff </span>
54 <span class="hey">stuff </span>
55 <span class="hey">stuff </span>
56 <span class="hey">stuff </span>
57 <span class="hey">stuff </span>
58 <span class="hey">stuff </span>
60 </div>
62 </td></tr></table>
64 Here it is: a gray, one-cell, no-width-specified table, with a 100x100 scrolling (overflow:auto) div inside. In this div, there are floating (float: left) span tags with content inside (text).<br><br>
66 You would expect that the table would expand to fit the defined width of the div tag. But in Safari and Shiira, the table expands to fit the height of the <i>content inside the div</i>, not the height of the div. This behavior does not occur if the content is not floated.<br><br>
68 </body>
69 </html>