OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 description("Test offsetParent for elements inside a named flow.") | 8 description("Test offsetParent for elements inside a named flow.") |
9 | 9 |
10 var article = document.createElement("div"); | 10 var article = document.createElement("div"); |
11 document.body.appendChild(article); | 11 document.body.appendChild(article); |
12 article.style.webkitFlowInto = "flow"; | 12 article.style.webkitFlowInto = "flow"; |
13 shouldBe("article.offsetParent", "document.body"); | 13 shouldBe("article.offsetParent", "document.body"); |
14 | 14 |
(...skipping 15 matching lines...) Expand all Loading... |
30 shouldBe("tdChild.offsetParent", "td"); | 30 shouldBe("tdChild.offsetParent", "td"); |
31 | 31 |
32 tdChild.style.webkitFlowInto = "flow"; | 32 tdChild.style.webkitFlowInto = "flow"; |
33 shouldBe("tdChild.offsetParent", "document.body"); | 33 shouldBe("tdChild.offsetParent", "document.body"); |
34 | 34 |
35 shouldBeNull("document.body.offsetParent"); | 35 shouldBeNull("document.body.offsetParent"); |
36 </script> | 36 </script> |
37 </body> | 37 </body> |
38 </html> | 38 </html> |
39 | 39 |
OLD | NEW |