| 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>Relative Position Transform Redraw</title> | 4 <title>Relative Position Transform Redraw</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(0deg); | |
| 16 } | |
| 17 | |
| 18 #box.rotated { | |
| 19 transform: rotate(45deg); | 15 transform: rotate(45deg); |
| 20 } | 16 } |
| 21 </style> | 17 </style> |
| 22 <script src="resources/text-based-repaint.js" type="text/javascript" charset="
utf-8"></script> | |
| 23 <script type="text/javascript" charset="utf-8"> | |
| 24 function repaintTest() | |
| 25 { | |
| 26 document.getElementById('box').className = 'rotated'; | |
| 27 } | |
| 28 </script> | |
| 29 </head> | 18 </head> |
| 30 <body onload="runRepaintTest()"> | 19 <body> |
| 31 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=17840">https://bu
gs.webkit.org/show_bug.cgi?id=17840</a>. The rotated box should be correctly red
rawn.</p> | 20 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=17840">https://bu
gs.webkit.org/show_bug.cgi?id=17840</a>. The rotated box should be correctly red
rawn.</p> |
| 32 <div id="box"> | 21 <div id="box"> |
| 33 </div> | 22 </div> |
| 34 </body> | 23 </body> |
| 35 </html> | 24 </html> |
| OLD | NEW |