| <script src="../../resources/js-test-pre.js"></script> |
| window.testRunner.keepWebHistory(); |
| firstStyle = internals.computedStyleIncludingVisitedInfo(document.getElementById('one')); |
| secondStyle = internals.computedStyleIncludingVisitedInfo(document.getElementById('two')); |
| shouldBecomeEqual('firstStyle.color', 'secondStyle.color', finishJSTest); |
| #one:link { color: green } |
| #two:link { color: purple } |
| #one:visited { color: orange } |
| #two.test:visited { color: orange } |
| <body onload="compareStyles()"> |
| <iframe src="resources/dummy.html" style="display:none"></iframe> |
| <p>These two links should be the same color (orange):</p> |
| <a href="resources/dummy.html" id="one">One</a> |
| <a href="resources/dummy.html" id="two" class="test">Two</a><br> |
| <script src="../../resources/js-test-post.js"></script> |