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