| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../repaint/resources/text-based-repaint.js"></script> | |
| 3 <script> | |
| 4 function repaintTest() | |
| 5 { | |
| 6 document.getElementById('target1').style.width = '150px'; | |
| 7 document.getElementById('target2').style.width = '50px'; | |
| 8 document.getElementById('target3').style.height = '150px'; | |
| 9 document.getElementById('target4').style.height = '50px'; | |
| 10 } | |
| 11 window.onload = runRepaintTest; | |
| 12 </script> | |
| 13 <style> | 2 <style> |
| 14 body { | 3 body { |
| 15 margin: 0; | 4 margin: 0; |
| 16 } | 5 } |
| 17 div { | 6 div { |
| 18 position: absolute; | 7 position: absolute; |
| 19 width: 100px; | 8 width: 100px; |
| 20 height: 100px; | 9 height: 100px; |
| 21 background-color: green; | 10 background-color: green; |
| 22 box-shadow: 40px 20px black; | 11 box-shadow: 40px 20px black; |
| 23 -webkit-writing-mode: vertical-rl; | 12 -webkit-writing-mode: vertical-rl; |
| 24 } | 13 } |
| 25 #target1 { | 14 #target1 { |
| 26 top: 100px; | 15 top: 100px; |
| 27 left: 100px; | 16 left: 100px; |
| 17 width: 150px; |
| 28 } | 18 } |
| 29 #target2 { | 19 #target2 { |
| 30 top: 100px; | 20 top: 100px; |
| 31 left: 300px; | 21 left: 300px; |
| 22 width: 50px; |
| 32 } | 23 } |
| 33 #target3 { | 24 #target3 { |
| 34 top: 300px; | 25 top: 300px; |
| 35 left: 100px; | 26 left: 100px; |
| 27 height: 150px; |
| 36 } | 28 } |
| 37 #target4 { | 29 #target4 { |
| 38 top: 300px; | 30 top: 300px; |
| 39 left: 300px; | 31 left: 300px; |
| 32 height: 50px; |
| 40 } | 33 } |
| 41 </style> | 34 </style> |
| 42 <div id="target1"></div> | 35 <div id="target1"></div> |
| 43 <div id="target2"></div> | 36 <div id="target2"></div> |
| 44 <div id="target3"></div> | 37 <div id="target3"></div> |
| 45 <div id="target4"></div> | 38 <div id="target4"></div> |
| OLD | NEW |