OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style type="text/css" media="screen"> | 3 <style type="text/css" media="screen"> |
4 .transformed { | 4 .transformed { |
5 height: 100px; | 5 height: 100px; |
6 width: 100px; | 6 width: 100px; |
7 margin: 20px; | 7 margin: 20px; |
8 transform: scale(2); | 8 transform: scale(2); |
9 -webkit-transform-origin: top left; | 9 -webkit-transform-origin: top left; |
10 } | 10 } |
11 | 11 |
12 .layoutroot { | 12 .layoutroot { |
13 height: 100px; | 13 height: 100px; |
14 width: 100px; | 14 width: 100px; |
15 overflow: hidden; | 15 overflow: hidden; |
16 background-color: red; | 16 background-color: red; |
17 } | 17 } |
18 </style> | 18 </style> |
19 <script src="resources/text-based-repaint.js"></script> | |
20 <script> | |
21 function repaintTest() | |
22 { | |
23 document.getElementById("target").style.width = "100px"; | |
24 } | |
25 </script> | |
26 </head> | 19 </head> |
27 <body onload="runRepaintTest()"> | 20 <body> |
28 | 21 |
29 <p>Tests repaint after layout of a subtree, inside a transformed element. You
should see a large green square below.</p> | 22 <p>Tests repaint after layout of a subtree, inside a transformed element. You
should see a large green square below.</p> |
30 <div class="transformed"> | 23 <div class="transformed"> |
31 <div class="layoutroot"> | 24 <div class="layoutroot"> |
32 <div id="target" style="height: 100px; width: 50px; background-color: gree
n;"></div> | 25 <div id="target" style="height: 100px; width: 100px; background-color: gre
en;"></div> |
33 </div> | 26 </div> |
34 </div> | 27 </div> |
35 | 28 |
36 </body> | 29 </body> |
37 </html> | 30 </html> |
OLD | NEW |