blob: 8e5370065fc7a3b50c04bba653b36e87895975d5 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test.js"></script>
<link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
</head>
<body onload="runTest();">
<div id="highlight" class="fauxHighlight" style="z-index: 1; position: absolute"></div>
<div class="opaqueHighlight" id="expectedHighlight" style="border-style: solid; cursor: pointer">
Click here to go <a id="taptarget" href="#">there</a>
</div>
<script>
function runTest() {
var clientRect = document.getElementById("expectedHighlight").getBoundingClientRect();
var highlight = document.getElementById("highlight");
highlight.style.left = clientRect.left + "px";
highlight.style.top = clientRect.top + "px";
highlight.style.width = clientRect.width + "px";
highlight.style.height = clientRect.height + "px";
if (window.testRunner)
testRunner.dumpAsTextWithPixelResults();
}
</script>
</body>
</html>