| 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 input { background: transparent } | 4 input { background: transparent } |
| 5 input + div { color: pink } | 5 input + div { color: pink } |
| 6 #i1:read-only { background-color: green } | 6 #i1:read-only { background-color: green } |
| 7 #i2:read-write { background-color: green } | 7 #i2:read-write { background-color: green } |
| 8 </style> | 8 </style> |
| 9 <input id="i1" type="text"></input> | 9 <input id="i1" type="text"></input> |
| 10 <div> | 10 <div> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 var transparent = "rgba(0, 0, 0, 0)"; | 26 var transparent = "rgba(0, 0, 0, 0)"; |
| 27 var green = "rgb(0, 128, 0)"; | 27 var green = "rgb(0, 128, 0)"; |
| 28 | 28 |
| 29 shouldBe("getComputedStyle(i1, '').backgroundColor", "transparent"); | 29 shouldBe("getComputedStyle(i1, '').backgroundColor", "transparent"); |
| 30 shouldBe("getComputedStyle(i2, '').backgroundColor", "transparent"); | 30 shouldBe("getComputedStyle(i2, '').backgroundColor", "transparent"); |
| 31 | 31 |
| 32 i1.offsetTop; // Force recalc. | 32 i1.offsetTop; // Force recalc. |
| 33 i1.setAttribute("readonly", ""); | 33 i1.setAttribute("readonly", ""); |
| 34 | 34 |
| 35 if (window.internals) | 35 if (window.internals) |
| 36 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); | 36 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "1
"); |
| 37 | 37 |
| 38 shouldBe("getComputedStyle(i1, '').backgroundColor", "green"); | 38 shouldBe("getComputedStyle(i1, '').backgroundColor", "green"); |
| 39 | 39 |
| 40 i2.offsetTop; // Force recalc. | 40 i2.offsetTop; // Force recalc. |
| 41 i2.removeAttribute("readonly"); | 41 i2.removeAttribute("readonly"); |
| 42 | 42 |
| 43 if (window.internals) | 43 if (window.internals) |
| 44 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); | 44 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "1
"); |
| 45 | 45 |
| 46 shouldBe("getComputedStyle(i2, '').backgroundColor", "green"); | 46 shouldBe("getComputedStyle(i2, '').backgroundColor", "green"); |
| 47 </script> | 47 </script> |
| OLD | NEW |