blob: 2c6e4c6754bcdda2b95203624e443e56d720f3c2 [file] [log] [blame]
inferno@chromium.orga8d71922012-04-09 16:03:46 +00001<!DOCTYPE html>
2<html style="font-family: ahem; font-size: 10px; -webkit-font-smoothing: none; color: white">
3<!-- WebKit bug 82630 - Incorrect placement of new child to table when before child parent is not |this|.
4 Test passes if you see 'B' wrapped in a table cell between ['A'] and ['C','D']. -->
5<div id="container">
6<div id="div1">A</div>
7<div id="div2">C</div>
8<div id="div3">D</div>
9</div>
10<script>
11 container = document.getElementById('container');
12 container.style.display = 'table-row';
13 document.body.offsetTop;
14 td = document.createElement('td');
15 td.appendChild(document.createTextNode('B'));
16 container.insertBefore(td, document.getElementById('div2'));
17</script>
18</html>