| <!DOCTYPE html> |
| <html> |
| <head> |
| <script src="resources/link-highlight-helper.js"></script> |
| <link rel="stylesheet" type="text/css" href="resources/link-highlight-style.css"> |
| <style> |
| .mySpan { |
| z-index:1; |
| } |
| |
| .myDiv { |
| will-change:transform; |
| position:relative; |
| z-index:0; |
| top:-10px; |
| background-color:blue |
| } |
| </style> |
| </head> |
| <body onload="runTest();" style="overflow: hidden"> |
| <span id="targetLink" class="mySpan">TEST</span> |
| <div class="myDiv">Div to overlap to ensure compositing</div> |
| <script> |
| function runTest() { |
| createCompositedHighlight(document.getElementById('targetLink')); |
| } |
| </script> |
| </body> |
| </html> |