| 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').style.outline = 'green solid 2px'; | 6 document.querySelector('#outer').style.outline = 'green solid 2px'; |
| 7 } | 7 } |
| 8 onload = runRepaintTest; | 8 onload = runRepaintAndPixelTest; |
| 9 </script> | 9 </script> |
| 10 <style> | 10 <style> |
| 11 body { height: 200px; } | 11 p, .inner { height: 20px; } |
| 12 p, #inner { height: 20px; } | 12 #container { position: absolute; width: 200px; padding: 10px; top: 100px; } |
| 13 #container { position: absolute; } | |
| 14 </style> | 13 </style> |
| 15 <p> | 14 <p> |
| 16 This test is verifying that when the outline is added to an element | 15 This test is verifying that when the outline is added to an element |
| 17 that we correctly invalidate any continuations. | 16 that we correctly invalidate any continuations. |
| 18 </p> | 17 </p> |
| 19 <p> | 18 <p> |
| 20 If this test passes, you should see a green border around the text contents. | 19 If this test passes, you should see a green border around "CONTENTS". |
| 21 </p> | 20 </p> |
| 22 <div id="container"> | 21 <div id="container"> |
| 23 <span id="outer"> | 22 <span id="outer"> |
| 24 <div id="inner">CONTENTS</div> | 23 CONTENTS |
| 24 <div class="inner">CONTENTS</div> |
| 25 CONTENTS |
| 26 <div class="inner">CONTENTS</div> |
| 27 </span> |
| 28 <span> |
| 29 <div class="inner">Should not have green border</div> |
| 25 </span> | 30 </span> |
| 26 </div> | 31 </div> |
| OLD | NEW |