Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / table / correct-baseline-after-style-change.html
blob90c2e378f6c5748d1e132c0c92c083c03368b082
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 td {
6 border: 1px solid gray;
8 input {
9 visibility: hidden;
11 </style>
12 </head>
13 <body>
14 <p>webkit.org/b/115432: There should be no extra space between the top of the text and the top of the table.</p>
15 <form>
16 <table>
17 <tr>
18 <td>Text</td>
19 <td>Text<br>Text<br>Text</td>
20 </tr>
21 </table>
22 </form>
23 <script>
24 var cells = document.getElementsByTagName("td");
25 // Ensure layout has run so that we properly invalidate.
26 cells[0].offsetLeft;
27 for (var i = 0; i < cells.length; ++i)
28 cells[i].style.verticalAlign = "baseline";
29 cells[0].offsetLeft;
30 </script>
31 </body>
32 </html>