| OLD | NEW |
| (Empty) |
| 1 <!-- Based on fast/repaint/transform-replaced-shadows.html --> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>Scaling and box-shadow</title> | |
| 5 <style type="text/css" media="screen"> | |
| 6 #box { | |
| 7 height: 100px; | |
| 8 width: 100px; | |
| 9 margin: 20px; | |
| 10 background-color: gray; | |
| 11 -webkit-transform-origin: top left; | |
| 12 -webkit-box-shadow: 0px 20px 20px black; | |
| 13 transform: scale(2); | |
| 14 } | |
| 15 | |
| 16 #box.smaller { | |
| 17 transform: scale(1); | |
| 18 } | |
| 19 </style> | |
| 20 | |
| 21 <script src="resources/paint-invalidation-test.js" type="text/javascript" char
set="utf-8"></script> | |
| 22 <script type="text/javascript" charset="utf-8"> | |
| 23 function paintInvalidationTest() | |
| 24 { | |
| 25 document.getElementById('box').className = 'smaller'; | |
| 26 } | |
| 27 </script> | |
| 28 </head> | |
| 29 <body onload="runPaintInvalidationTest()"> | |
| 30 | |
| 31 <img id="box"> | |
| 32 | |
| 33 </body> | |
| 34 </html> | |
| OLD | NEW |