OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../../resources/js-test.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
3 <style> | 3 <style> |
4 .outer #inner:not(:-webkit-full-page-media) { | 4 .outer #inner:not(:-webkit-full-page-media) { |
5 background-color: green | 5 background-color: green |
6 } | 6 } |
7 #outer + div { | 7 #outer + div { |
8 color: pink | 8 color: pink |
9 } | 9 } |
10 </style> | 10 </style> |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 var transparent = "rgba(0, 0, 0, 0)"; | 22 var transparent = "rgba(0, 0, 0, 0)"; |
23 var green = "rgb(0, 128, 0)"; | 23 var green = "rgb(0, 128, 0)"; |
24 | 24 |
25 shouldBe("getComputedStyle(inner).backgroundColor", "transparent"); | 25 shouldBe("getComputedStyle(inner).backgroundColor", "transparent"); |
26 | 26 |
27 inner.offsetTop; // force recalc | 27 inner.offsetTop; // force recalc |
28 outer.className = "outer"; | 28 outer.className = "outer"; |
29 | 29 |
30 if (window.internals) | 30 if (window.internals) |
31 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); | 31 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); |
32 | 32 |
33 shouldBe("getComputedStyle(inner).backgroundColor", "green"); | 33 shouldBe("getComputedStyle(inner).backgroundColor", "green"); |
34 </script> | 34 </script> |
OLD | NEW |