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 -webkit-transform: rotate(0deg); | 15 transform: rotate(0deg); |
16 } | 16 } |
17 | 17 |
18 #box.rotated { | 18 #box.rotated { |
19 -webkit-transform: rotate(45deg); | 19 transform: rotate(45deg); |
20 } | 20 } |
21 </style> | 21 </style> |
22 <script src="resources/text-based-repaint.js" type="text/javascript" charset="
utf-8"></script> | 22 <script src="resources/text-based-repaint.js" type="text/javascript" charset="
utf-8"></script> |
23 <script type="text/javascript" charset="utf-8"> | 23 <script type="text/javascript" charset="utf-8"> |
24 function repaintTest() | 24 function repaintTest() |
25 { | 25 { |
26 document.getElementById('box').className = 'rotated'; | 26 document.getElementById('box').className = 'rotated'; |
27 } | 27 } |
28 </script> | 28 </script> |
29 </head> | 29 </head> |
30 <body onload="runRepaintTest()"> | 30 <body onload="runRepaintTest()"> |
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> | 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> |
32 <div id="box"> | 32 <div id="box"> |
33 </div> | 33 </div> |
34 </body> | 34 </body> |
35 </html> | 35 </html> |
OLD | NEW |