| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st
rict.dtd"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st
rict.dtd"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Transform Repaint Descendants</title> | 4 <title>Transform Repaint Descendants</title> |
| 5 <meta http-equiv="content-type" content="text/html; charset=utf-8"> | 5 <meta http-equiv="content-type" content="text/html; charset=utf-8"> |
| 6 <style type="text/css"> | 6 <style type="text/css"> |
| 7 #box { | 7 #box { |
| 8 position:relative; | 8 position:relative; |
| 9 top: 100px; | 9 top: 100px; |
| 10 left: 100px; | 10 left: 100px; |
| 11 height: 200px; | 11 height: 200px; |
| 12 width: 200px; | 12 width: 200px; |
| 13 background-color: #CCC; | 13 background-color: #CCC; |
| 14 border: 1px solid black; | 14 border: 1px solid black; |
| 15 transform: rotate(23deg); |
| 15 } | 16 } |
| 16 | 17 |
| 17 #box > div { | 18 #box > div { |
| 18 position: absolute; | 19 position: absolute; |
| 19 height: 50px; | 20 height: 50px; |
| 20 width: 400px; | 21 width: 400px; |
| 21 top: 75px; | 22 top: 75px; |
| 22 left: 75px; | 23 left: 75px; |
| 23 background-color: #555; | 24 background-color: #555; |
| 24 } | 25 } |
| 25 </style> | 26 </style> |
| 26 <script src="resources/text-based-repaint.js" type="text/javascript" charset="
utf-8"></script> | |
| 27 <script type="text/javascript" charset="utf-8"> | |
| 28 var gAngle = 20; | |
| 29 function incrementAngle() | |
| 30 { | |
| 31 document.getElementById('box').style.webkitTransform = 'rotate(' + gAngle
+ 'deg)'; | |
| 32 gAngle += 3; | |
| 33 } | |
| 34 | |
| 35 function repaintTest() | |
| 36 { | |
| 37 incrementAngle(); | |
| 38 } | |
| 39 | |
| 40 function startTest() | |
| 41 { | |
| 42 incrementAngle(); | |
| 43 runRepaintTest(); | |
| 44 } | |
| 45 </script> | |
| 46 </head> | 27 </head> |
| 47 <body onload="startTest()"> | 28 <body onload="startTest()"> |
| 48 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=22088">https://bu
gs.webkit.org/show_bug.cgi?id=22088</a>. The rotated box should be correctly red
rawn.</p> | 29 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=22088">https://bu
gs.webkit.org/show_bug.cgi?id=22088</a>. The rotated box should be correctly red
rawn.</p> |
| 49 <div id="box"><div></div></div> | 30 <div id="box"><div></div></div> |
| 50 </body> | 31 </body> |
| 51 </html> | 32 </html> |
| OLD | NEW |