OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/js-test.js"></script> |
| 3 <style> |
| 4 :not(.x).a + #b { background-color: green } |
| 5 </style> |
| 6 <div id="a"></div> |
| 7 <div id="b"></div> |
| 8 <script> |
| 9 description("Negated selector should not clear adjacent combinator flag.") |
| 10 |
| 11 var transparent = "rgba(0, 0, 0, 0)"; |
| 12 var green = "rgb(0, 128, 0)"; |
| 13 |
| 14 shouldBe("getComputedStyle(b).backgroundColor", "transparent"); |
| 15 |
| 16 a.offsetTop; // Force recalc. |
| 17 a.className = "a"; |
| 18 |
| 19 if (window.internals) |
| 20 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); |
| 21 else |
| 22 a.offsetTop; // Force recalc (crbug.com/436064) |
| 23 |
| 24 shouldBe("getComputedStyle(b).backgroundColor", "green"); |
| 25 </script> |
OLD | NEW |