summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/table/whitespace-in-table-cells-when-div-appended-2.html
blob: 8bfa8c0be2624469c107a0adff5e2e82d3bd2b55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<p> crbug.com/511401: Ensure correct treatment of whitespace when div added to a row. </p>
<table style="width:700px;" id="table">
<tr>
    <th>Text</th>
    <th>Text</th>
    <th>Text</th>
</tr>
<tr id="tr">
    <td id="firstcell">Text</td>
    <td id="secondcell">Text</td>
</tr>
</table>
<div style="margin-top: 1px; margin-left: 1px;" id="content">Div</div>
<script>
   document.body.offsetTop;
   tr.insertBefore(document.getElementById("content"), document.getElementById("secondcell")); 
</script>