| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="resources/text-based-repaint.js"></script> | 2 <script src="resources/text-based-repaint.js"></script> |
| 3 <script> | 3 <script> |
| 4 function repaintTest() | 4 function repaintTest() |
| 5 { | 5 { |
| 6 document.querySelector('#outer').focus(); | 6 document.querySelector('#outer').focus(); |
| 7 } | 7 } |
| 8 onload = runRepaintAndPixelTest; | 8 onload = runRepaintAndPixelTest; |
| 9 </script> | 9 </script> |
| 10 <style> | 10 <style> |
| 11 body { height: 200px; } | 11 body { height: 200px; } |
| 12 #container { position: absolute; } | 12 #container { position: absolute; } |
| 13 p, #inner { height: 20px; } | 13 p, #inner { height: 20px; } |
| 14 </style> | 14 </style> |
| 15 <p> | 15 <p> |
| 16 This test is verifying that when the focus is added to an element we | 16 This test is verifying that when the focus is added to an element we |
| 17 correctly invalidate continuations and display the focus ring. | 17 correctly invalidate continuations and display the focus ring. |
| 18 </p> | 18 </p> |
| 19 <p> | 19 <p> |
| 20 If this test passes, you should see a focus ring. | 20 If this test passes, you should see a focus ring. |
| 21 </p> | 21 </p> |
| 22 <div id="container"> | 22 <div id="container"> |
| 23 <span id="outer" tabindex="1"> | 23 <span id="outer" tabindex="1"> |
| 24 <div id="inner">CONTENTS</div> | 24 <div id="inner">CONTENTS</div> |
| 25 </span> | 25 </span> |
| 26 </div> | 26 </div> |
| OLD | NEW |