| OLD | NEW |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
| 4 <head> | 4 <head> |
| 5 <title></title> | 5 <title></title> |
| 6 <style type="text/css"> | 6 <style type="text/css"> |
| 7 div:after { | 7 div:after { |
| 8 content: "and generated content"; | 8 content: "and generated content"; |
| 9 } | 9 } |
| 10 div:hover:after { | 10 div:hover:after { |
| 11 content: "and generated hover content"; | 11 content: "and generated hover content"; |
| 12 } | 12 } |
| 13 </style> | 13 </style> |
| 14 <script type="text/javascript"> | 14 <script type="text/javascript"> |
| 15 function test() | 15 function test() |
| 16 { | 16 { |
| 17 if (!window.testRunner) | 17 if (!window.testRunner) |
| 18 return; | 18 return; |
| 19 // Mouse events only work after an initial layout | |
| 20 document.body.offsetLeft; | |
| 21 eventSender.mouseMoveTo(12, 12); // hover | 19 eventSender.mouseMoveTo(12, 12); // hover |
| 22 eventSender.mouseDown(); // get noticed | 20 eventSender.mouseDown(); // get noticed |
| 23 eventSender.mouseUp(); | 21 eventSender.mouseUp(); |
| 24 } | 22 } |
| 25 </script> | 23 </script> |
| 26 </head> | 24 </head> |
| 27 <body onload="test()"> | 25 <body onload="test()"> |
| 28 <div> | 26 <div> |
| 29 This is a test | 27 This is a test |
| 30 </div> | 28 </div> |
| 31 <hr> | 29 <hr> |
| 32 <p> | 30 <p> |
| 33 Test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=6431">http:
//bugzilla.opendarwin.org/show_bug.cgi?id=6431</a> | 31 Test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=6431">http:
//bugzilla.opendarwin.org/show_bug.cgi?id=6431</a> |
| 34 REGRESSION: style change where :hover changes only an :after style doesn
't work</i>. | 32 REGRESSION: style change where :hover changes only an :after style doesn
't work</i>. |
| 35 </p> | 33 </p> |
| 36 <p> | 34 <p> |
| 37 The line at the top of the page should read “This is a test and ge
nerated content” | 35 The line at the top of the page should read “This is a test and ge
nerated content” |
| 38 or “This is a test and generated hover content” depending on
whether it is | 36 or “This is a test and generated hover content” depending on
whether it is |
| 39 hovered. | 37 hovered. |
| 40 </p> | 38 </p> |
| 41 <p> | 39 <p> |
| 42 To reproduce the bug outside of DumpRenderTree, mouse over the div sever
al times, and the style change won't update every time | 40 To reproduce the bug outside of DumpRenderTree, mouse over the div sever
al times, and the style change won't update every time |
| 43 like it should. | 41 like it should. |
| 44 </p> | 42 </p> |
| 45 </body> | 43 </body> |
| 46 </html> | 44 </html> |
| OLD | NEW |