| OLD | NEW |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | 2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| 3 <head> | 3 <head> |
| 4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=13655</title> | 4 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=13655</title> |
| 5 <style type="text/css"> | 5 <style type="text/css"> |
| 6 div { | 6 div { |
| 7 position: relative; | 7 position: relative; |
| 8 height: 100px; | 8 height: 100px; |
| 9 width: 100px; | 9 width: 100px; |
| 10 background-color: red; | 10 background-color: red; |
| 11 } | 11 } |
| 12 | 12 |
| 13 div.selected { | 13 div.selected { |
| 14 background-color: green; | 14 background-color: green; |
| 15 text-shadow: red 5px 5px 0; | 15 text-shadow: red 5px 5px 0; |
| 16 } | 16 } |
| 17 </style> | 17 </style> |
| 18 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 18 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> |
| 19 <script> | 19 <script> |
| 20 function repaintTest() | 20 function repaintTest() |
| 21 { | 21 { |
| 22 document.getElementById('test').className = "selected"; | 22 document.getElementById('test').className = "selected"; |
| 23 } | 23 } |
| 24 </script> | 24 </script> |
| 25 </head> | 25 </head> |
| 26 <body onload="runRepaintTest();"> | 26 <body onload="runRepaintAndPixelTest();"> |
| 27 <div id="test"></div> | 27 <div id="test"></div> |
| 28 </body> | 28 </body> |
| 29 </html> | 29 </html> |
| OLD | NEW |