4 <script src=
"../../resources/js-test.js"></script>
5 <script src=
"resources/link-highlight-helper.js"></script>
6 <link rel=
"stylesheet" type=
"text/css" href=
"resources/link-highlight-style.css">
9 transform:translateZ(
0);
17 <body onload=
"runTest();" style=
"overflow: hidden">
18 <span style=
"cursor: pointer;position:relative;z-index:1" class=
"opaqueHighlight">
19 <span id=
"targetLink" style=
"visibility: hidden" class=
"mySpan">TEST
</span>
21 <div class=
"myDiv">Div to overlap to ensure compositing
</div>
26 var clientRect
= document
.getElementById('targetLink').getBoundingClientRect();
27 x
= (clientRect
.left
+ clientRect
.right
) / 2;
28 y
= (clientRect
.top
+ clientRect
.bottom
) / 2;
30 if (window
.testRunner
) {
31 testRunner
.dumpAsTextWithPixelResults();
32 testRunner
.waitUntilDone();
35 if (window
.eventSender
) {
36 eventSender
.gestureShowPress(x
, y
);
37 window
.setTimeout(function() { window
.testRunner
.notifyDone(); }, 0);
39 debug("This test requires DumpRenderTree.");
40 debug("This test makes sure that a link highlight on a composited" +
41 ", inline element that doesn't draw content does not crash" +
42 "http://crbug.com/322591");
43 debug("This test is successful if it doesn't crash and there's a green rectangle below.");