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 :out-of-range { | 4 :out-of-range { |
5 background-color: red | 5 background-color: red |
6 } | 6 } |
7 | 7 |
8 :in-range, :in-range + div #descendant { | 8 :in-range, :in-range + div #descendant { |
9 background-color: green | 9 background-color: green |
10 } | 10 } |
(...skipping 13 matching lines...) Expand all Loading... |
24 var red = "rgb(255, 0, 0)"; | 24 var red = "rgb(255, 0, 0)"; |
25 var green = "rgb(0, 128, 0)"; | 25 var green = "rgb(0, 128, 0)"; |
26 | 26 |
27 shouldBe("getComputedStyle(input).backgroundColor", "red"); | 27 shouldBe("getComputedStyle(input).backgroundColor", "red"); |
28 shouldBe("getComputedStyle(descendant).backgroundColor", "transparent"); | 28 shouldBe("getComputedStyle(descendant).backgroundColor", "transparent"); |
29 | 29 |
30 document.body.offsetTop; // Force recalc. | 30 document.body.offsetTop; // Force recalc. |
31 input.value = "5"; | 31 input.value = "5"; |
32 | 32 |
33 if (window.internals) | 33 if (window.internals) |
34 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); | 34 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "2
"); |
35 shouldBe("getComputedStyle(input).backgroundColor", "green"); | 35 shouldBe("getComputedStyle(input).backgroundColor", "green"); |
36 shouldBe("getComputedStyle(descendant).backgroundColor", "green"); | 36 shouldBe("getComputedStyle(descendant).backgroundColor", "green"); |
37 | 37 |
38 </script> | 38 </script> |
OLD | NEW |