| <script src="../../resources/js-test-pre.js"></script> |
| description(":visited inside :-webkit-any should not be effective."); |
| window.testRunner.keepWebHistory(); |
| oneStyle = internals.computedStyleIncludingVisitedInfo(document.getElementById("one").firstChild); |
| twoStyle = internals.computedStyleIncludingVisitedInfo(document.getElementById("two")); |
| shouldBecomeEqualToString("oneStyle.color", "rgb(0, 128, 0)", finish); |
| shouldBecomeEqualToString("twoStyle.color", "rgb(0, 128, 0)", finish); |
| #one :-webkit-any(:visited) { |
| #one + :-webkit-any(:visited) + a { |
| <body onload="compareStyles()"> |
| <iframe src="resources/dummy.html" style="display:none"></iframe> |
| <p>One and Two links should be green:</p> |
| <p id="one"><a href="resources/dummy.html">One</a></p> |
| <a href="resources/dummy.html">and</a> |
| <a id="two"href="resources/dummy.html">Two</a> |
| <script src="../../resources/js-test-post.js"></script> |