| 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 :-webkit-any(.a1) { background-color: green } | 4 :-webkit-any(.a1) { background-color: green } |
| 5 .a2 :-webkit-any(.b2) { background-color: green } | 5 .a2 :-webkit-any(.b2) { background-color: green } |
| 6 .a3 :-webkit-any(.b3, .c3) { background-color: green } | 6 .a3 :-webkit-any(.b3, .c3) { background-color: green } |
| 7 .a4 :-webkit-any(:not(.b4), .c4) { background-color: green } | 7 .a4 :-webkit-any(:not(.b4), .c4) { background-color: green } |
| 8 :-webkit-any(.a5, .b5) ~ .c5 .d5 { background-color: green } | 8 :-webkit-any(.a5, .b5) ~ .c5 .d5 { background-color: green } |
| 9 | 9 |
| 10 </style> | 10 </style> |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "5"); | 90 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "5"); |
| 91 shouldBe("getComputedStyle(spans4[0], null).backgroundColor", "green"); | 91 shouldBe("getComputedStyle(spans4[0], null).backgroundColor", "green"); |
| 92 shouldBe("getComputedStyle(spans4[1], null).backgroundColor", "transparent"); | 92 shouldBe("getComputedStyle(spans4[1], null).backgroundColor", "transparent"); |
| 93 shouldBe("getComputedStyle(spans4[2], null).backgroundColor", "transparent"); | 93 shouldBe("getComputedStyle(spans4[2], null).backgroundColor", "transparent"); |
| 94 shouldBe("getComputedStyle(spans4[3], null).backgroundColor", "green"); | 94 shouldBe("getComputedStyle(spans4[3], null).backgroundColor", "green"); |
| 95 | 95 |
| 96 document.body.offsetLeft; // force style recalc. | 96 document.body.offsetLeft; // force style recalc. |
| 97 | 97 |
| 98 document.getElementById("t5").className = "a5"; | 98 document.getElementById("t5").className = "a5"; |
| 99 if (window.internals) | 99 if (window.internals) |
| 100 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "3"); | 100 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); |
| 101 shouldBe("getComputedStyle(d5, null).backgroundColor", "green"); | 101 shouldBe("getComputedStyle(d5, null).backgroundColor", "green"); |
| 102 </script> | 102 </script> |
| OLD | NEW |