| 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-color'] ='green'; | 6 document.querySelector('#outer').style['outline-color'] ='green'; |
| 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 #outer { outline: 2px solid red; } | 14 #outer { outline: 2px solid red; } |
| 15 </style> | 15 </style> |
| 16 <p> | 16 <p> |
| 17 This test is verifying that when the outline is modified on an element | 17 This test is verifying that when the outline is modified on an element |
| 18 that we correctly invalidate any continuations. | 18 that we correctly invalidate any continuations. |
| 19 </p> | 19 </p> |
| 20 <p> | 20 <p> |
| 21 If this test passes, you should see a green border around the text contents. | 21 If this test passes, you should see a green border around the text contents. |
| 22 </p> | 22 </p> |
| 23 <div id="container"> | 23 <div id="container"> |
| 24 <span id="outer"> | 24 <span id="outer"> |
| 25 <div id="inner">CONTENTS</div> | 25 <div id="inner">CONTENTS</div> |
| 26 </span> | 26 </span> |
| 27 </div> | 27 </div> |
| OLD | NEW |