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 fieldset:disabled { background-color: green } | 4 fieldset:disabled { background-color: green } |
5 fieldset + div { color: pink } | 5 fieldset + div { color: pink } |
6 </style> | 6 </style> |
7 <fieldset id="fieldset"> | 7 <fieldset id="fieldset"> |
8 <legend></legend> | 8 <legend></legend> |
9 <label for="field"></label> | 9 <label for="field"></label> |
10 <input type="text" name="field" id="field"> | 10 <input type="text" name="field" id="field"> |
(...skipping 17 matching lines...) Expand all Loading... |
28 var green = "rgb(0, 128, 0)"; | 28 var green = "rgb(0, 128, 0)"; |
29 | 29 |
30 shouldBe("getComputedStyle(fieldset, '').backgroundColor", "transparent"); | 30 shouldBe("getComputedStyle(fieldset, '').backgroundColor", "transparent"); |
31 | 31 |
32 fieldset.offsetTop; // Force recalc. | 32 fieldset.offsetTop; // Force recalc. |
33 fieldset.disabled = true; | 33 fieldset.disabled = true; |
34 | 34 |
35 if (window.internals) { | 35 if (window.internals) { |
36 // There are still instances of SubtreeStyleChange left when updating | 36 // There are still instances of SubtreeStyleChange left when updating |
37 // disabled state. This count should become lower. | 37 // disabled state. This count should become lower. |
38 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "7"); | 38 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); |
39 } | 39 } |
40 | 40 |
41 shouldBe("getComputedStyle(fieldset, '').backgroundColor", "green"); | 41 shouldBe("getComputedStyle(fieldset, '').backgroundColor", "green"); |
42 </script> | 42 </script> |
OLD | NEW |