OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../../resources/js-test.js"></script> | |
3 <style> | |
4 object + div { color: green; } | |
esprehn
2014/09/19 04:15:07
Have we seen this in the wild?
| |
5 </style> | |
6 <object id="obj" data="data:text/html,FAIL"><div>Fallback</div></object> | |
7 <div> | |
8 <div></div> | |
9 <div></div> | |
10 <div></div> | |
11 <div></div> | |
12 </div> | |
13 <script> | |
14 description("Changing data attribute on <object> should not cause sibling subtre e recalc."); | |
15 | |
16 if (window.testRunner) | |
17 testRunner.waitUntilDone(); | |
18 | |
19 onload = function() { | |
20 | |
21 obj.offsetTop; // Force recalc | |
22 | |
23 obj.setAttribute("data", "data:text/html,PASS"); | |
24 | |
25 if (window.internals) | |
26 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); | |
27 | |
28 if (window.testRunner) | |
29 testRunner.notifyDone(); | |
30 }; | |
31 </script> | |
OLD | NEW |