| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <style> | |
| 5 html { | |
| 6 font-size: 10px; | |
| 7 font-family: Ahem; | |
| 8 -webkit-font-smoothing: none; | |
| 9 } | |
| 10 | |
| 11 a { | |
| 12 color: #0F0; | |
| 13 background: #F00; | |
| 14 } | |
| 15 a:hover { | |
| 16 background: #0F0; | |
| 17 } | |
| 18 | |
| 19 #table { | |
| 20 display: table; | |
| 21 overflow: hidden; | |
| 22 } | |
| 23 </style> | |
| 24 <script> | |
| 25 function runTest() | |
| 26 { | |
| 27 if (window.testRunner) | |
| 28 window.testRunner.dumpAsTextWithPixelResults(); | |
| 29 | |
| 30 var table = document.getElementById("table"); | |
| 31 var tableBox = table.getBoundingClientRect(); | |
| 32 var tableCenterX = (tableBox.left + tableBox.right) / 2; | |
| 33 var tableCenterY = (tableBox.top + tableBox.bottom) / 2; | |
| 34 | |
| 35 if (window.eventSender) { | |
| 36 eventSender.mouseMoveTo(tableCenterX, tableCenterY); | |
| 37 eventSender.mouseDown(); | |
| 38 eventSender.mouseUp(); | |
| 39 } | |
| 40 window.stop(); | |
| 41 } | |
| 42 window.addEventListener("load", runTest); | |
| 43 </script> | |
| 44 </head> | |
| 45 <body> | |
| 46 <!-- | |
| 47 REGRESSION(r110072): :hover doesn't work on table child with overflow: hidde
n | |
| 48 http://webkit.org/b/81460 | |
| 49 To test this bug outside DRT, hover on the link below. | |
| 50 --> | |
| 51 <div id="table"> | |
| 52 <a href="inexistant_resources.html" >When hovered, the background should hav
e the same color as this text.</a> | |
| 53 </div> | |
| 54 </body> | |
| 55 </html> | |
| OLD | NEW |