| 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 <script> | 3 <script> |
| 4 if (window.testRunner) | 4 if (window.testRunner) |
| 5 testRunner.keepWebHistory(); | 5 testRunner.keepWebHistory(); |
| 6 </script> | 6 </script> |
| 7 <style> | 7 <style> |
| 8 :link, :visited { all: initial } | 8 :link, :visited { all: initial } |
| 9 #match { background-color: red } | 9 #match { background-color: red } |
| 10 :visited #match { background-color: green } | 10 :visited #match { background-color: green } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 if (window.internals) | 32 if (window.internals) |
| 33 shouldBe("internals.computedStyleIncludingVisitedInfo(match).backgroundColor
", "red"); | 33 shouldBe("internals.computedStyleIncludingVisitedInfo(match).backgroundColor
", "red"); |
| 34 | 34 |
| 35 visited.offsetTop; // Force recalc. | 35 visited.offsetTop; // Force recalc. |
| 36 visited.href = ""; | 36 visited.href = ""; |
| 37 | 37 |
| 38 if (window.internals) { | 38 if (window.internals) { |
| 39 // Ideally, the affected element count should be 2, but there is a _insideLi
nk that | 39 // Ideally, the affected element count should be 2, but there is a _insideLi
nk that |
| 40 // causes inheritance to recalc all elements inside <a>. | 40 // causes inheritance to recalc all elements inside <a>. |
| 41 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "5"); | 41 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "5
"); |
| 42 shouldBe("internals.computedStyleIncludingVisitedInfo(match).backgroundColor
", "green"); | 42 shouldBe("internals.computedStyleIncludingVisitedInfo(match).backgroundColor
", "green"); |
| 43 } | 43 } |
| 44 | 44 |
| 45 </script> | 45 </script> |
| OLD | NEW |