| 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 :lang(no), :lang(no) + div > span, | 4 :lang(no), :lang(no) + div > span, |
| 5 :lang(en), :lang(en) + div > span { background-color: green } | 5 :lang(en), :lang(en) + div > span { background-color: green } |
| 6 </style> | 6 </style> |
| 7 <div id="norwegian"></div> | 7 <div id="norwegian"></div> |
| 8 <div> | 8 <div> |
| 9 <div></div> | 9 <div></div> |
| 10 <div></div> | 10 <div></div> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 shouldBe("getComputedStyle(norwegian).backgroundColor", "transparent"); | 27 shouldBe("getComputedStyle(norwegian).backgroundColor", "transparent"); |
| 28 shouldBe("getComputedStyle(nospan).backgroundColor", "transparent"); | 28 shouldBe("getComputedStyle(nospan).backgroundColor", "transparent"); |
| 29 shouldBe("getComputedStyle(english).backgroundColor", "transparent"); | 29 shouldBe("getComputedStyle(english).backgroundColor", "transparent"); |
| 30 shouldBe("getComputedStyle(enspan).backgroundColor", "transparent"); | 30 shouldBe("getComputedStyle(enspan).backgroundColor", "transparent"); |
| 31 | 31 |
| 32 document.documentElement.offsetTop; // Force recalc. | 32 document.documentElement.offsetTop; // Force recalc. |
| 33 norwegian.lang = "no"; | 33 norwegian.lang = "no"; |
| 34 | 34 |
| 35 if (window.internals) | 35 if (window.internals) |
| 36 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); | 36 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "2
"); |
| 37 | 37 |
| 38 shouldBe("getComputedStyle(norwegian).backgroundColor", "green"); | 38 shouldBe("getComputedStyle(norwegian).backgroundColor", "green"); |
| 39 shouldBe("getComputedStyle(nospan).backgroundColor", "green"); | 39 shouldBe("getComputedStyle(nospan).backgroundColor", "green"); |
| 40 | 40 |
| 41 document.documentElement.offsetTop; // Force recalc. | 41 document.documentElement.offsetTop; // Force recalc. |
| 42 english.setAttributeNS("http://www.w3.org/XML/1998/namespace", "lang", "en"); | 42 english.setAttributeNS("http://www.w3.org/XML/1998/namespace", "lang", "en"); |
| 43 | 43 |
| 44 if (window.internals) | 44 if (window.internals) |
| 45 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "2"); | 45 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "2
"); |
| 46 | 46 |
| 47 shouldBe("getComputedStyle(english).backgroundColor", "green"); | 47 shouldBe("getComputedStyle(english).backgroundColor", "green"); |
| 48 shouldBe("getComputedStyle(enspan).backgroundColor", "green"); | 48 shouldBe("getComputedStyle(enspan).backgroundColor", "green"); |
| 49 </script> | 49 </script> |
| OLD | NEW |