forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbugzilla-7235.html
45 lines (41 loc) · 1.3 KB
/
bugzilla-7235.html
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http:/html4/strict.dtd">
<html lang="en">
<head>
<style type="text/css">
#p {
position: relative;
left: -100px;
margin-left: 100px;
}
#t {
display: none;
position: absolute;
width: 100px;
height: 100px;
background: green;
margin-left: 100px;
}
</style>
<script src="resources/text-based-repaint.js" type="text/javascript"></script>
<script type="text/javascript">
function repaintTest()
{
document.getElementById('t').style.display='block';
}
</script>
</head>
<body onload="runRepaintAndPixelTest();">
<p><b>BUG ID:</b> <a href="https://bugs.webkit.org/show_bug.cgi?id=7235">Bugzilla bug 7235</a> Pure CSS Tooltips method renders wrong and creates artifacts</p>
<p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b>
The square should change to solid green.
</p>
<p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>
The square will remain red and will only change to green when the window is resized, scrolled or otherwise repainted.
</p>
<p>
</p>
<span id="p"> <div id="t"></div></span>
<div style="width: 100px; height: 100px; background: red;"></div>
</body>
</html>