OLD | NEW |
| 1 <!-- Based on fast/repaint/transform-absolute-child.html --> |
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | 2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
2 "http://www.w3.org/TR/html4/loose.dtd"> | 3 "http://www.w3.org/TR/html4/loose.dtd"> |
3 <html lang="en"> | 4 <html lang="en"> |
4 <head> | 5 <head> |
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
6 <title>Transform with Abs. Pos child</title> | 7 <title>Transform with Abs. Pos child</title> |
7 <style type="text/css" media="screen"> | 8 <style type="text/css" media="screen"> |
8 #box { | 9 #box { |
9 position: relative; | 10 position: relative; |
10 margin: 50px; | 11 margin: 50px; |
11 width: 200px; | 12 width: 200px; |
12 height: 200px; | 13 height: 200px; |
13 border: 2px solid black; | 14 border: 2px solid black; |
14 transform: rotate(0deg); | 15 transform: rotate(0deg); |
15 } | 16 } |
16 #box.rotated { | 17 #box.rotated { |
17 transform: rotate(40deg); | 18 transform: rotate(40deg); |
18 } | 19 } |
19 #child { | 20 #child { |
20 position: absolute; | 21 position: absolute; |
21 width: 400px; | 22 width: 400px; |
22 height: 50px; | 23 height: 50px; |
23 top: 75px; | 24 top: 75px; |
24 left: 75px; | 25 left: 75px; |
25 background-color: gray; | 26 background-color: gray; |
26 } | 27 } |
27 </style> | 28 </style> |
28 <script src="resources/text-based-repaint.js" type="text/javascript" charset="
utf-8"></script> | 29 <script src="resources/paint-invalidation-test.js" type="text/javascript" char
set="utf-8"></script> |
29 <script type="text/javascript" charset="utf-8"> | 30 <script type="text/javascript" charset="utf-8"> |
30 function repaintTest() | 31 window.expectedPaintInvalidationObjects = [ |
| 32 "LayoutBlockFlow (relative positioned) DIV id='box' class='rotated'", |
| 33 "LayoutBlockFlow (positioned) DIV id='child'", |
| 34 ]; |
| 35 function paintInvalidationTest() |
31 { | 36 { |
32 document.getElementById('box').className = 'rotated'; | 37 document.getElementById('box').className = 'rotated'; |
33 } | 38 } |
34 </script> | 39 </script> |
35 </head> | 40 </head> |
36 <body onload="runRepaintTest()"> | 41 <body onload="runPaintInvalidationTest()"> |
37 <div id="box"> | 42 <div id="box"> |
38 <div id="child"> | 43 <div id="child"> |
39 </div> | 44 </div> |
40 </div> | 45 </div> |
41 </body> | 46 </body> |
42 </html> | 47 </html> |
OLD | NEW |