blob: b71babc0b3c2d7701ef50c48b6eb60b025c1e6c4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<!DOCTYPE html>
<html>
<head>
<title>This test ensures all elements are highlighted in a multielement <a> when the text is clicked</title>
<script src="resources/link-highlight-helper.js"></script>
<link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css">
</head>
<body onload="runTest();">
<div style="transform: translateZ(0); padding: 20px;">
<a id="targetLink">
<font style="vertical-align: bottom" id="beforeTarget">Before Text</font><img id="imgTarget" width="320" height="240" src="resources/dice.png"><font style="vertical-align: bottom" id="afterTarget">After Text</font>
</a>
</div>
<script>
function runTest() {
createSquareCompositedHighlight(document.getElementById('beforeTarget'));
createSquareCompositedHighlight(document.getElementById('imgTarget'));
createSquareCompositedHighlight(document.getElementById('afterTarget'));
if (window.testRunner)
testRunner.dumpAsTextWithPixelResults();
}
</script>
</script>
</body>
</html>
|