OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../js/resources/js-test-pre.js"></script> |
3 <body> | 3 <body> |
4 <div id="container" style="position: relative;"></div> | 4 <div id="container" style="position: relative;"></div> |
5 <script> | 5 <script> |
6 description('offsetParent should not leak nodes in user agent Shadow DOM.'); | 6 description('offsetParent should not leak nodes in user agent Shadow DOM.'); |
7 | 7 |
8 if (!window.internals) | 8 if (!window.internals) |
9 fail('This test requires window.internals to manipulate user agent Shadow DO
M.'); | 9 fail('This test requires window.internals to manipulate user agent Shadow DO
M.'); |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 // Test that offsetParent works 'through' user agent Shadow DOM when there is no | 43 // Test that offsetParent works 'through' user agent Shadow DOM when there is no |
44 // positioned ancestor in user agent Shadow DOM | 44 // positioned ancestor in user agent Shadow DOM |
45 shadow.positionedElement.removeAttribute('style'); | 45 shadow.positionedElement.removeAttribute('style'); |
46 shouldBe('child.offsetParent', 'container'); | 46 shouldBe('child.offsetParent', 'container'); |
47 | 47 |
48 container.remove(); | 48 container.remove(); |
49 | 49 |
50 successfullyParsed = true; | 50 successfullyParsed = true; |
51 </script> | 51 </script> |
52 <script src="../../js/resources/js-test-post.js"></script> | |
OLD | NEW |