summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/clip-with-layout-delta.html
blob: ed9c486c203a6e284c6b06ad07d931b1c27571a2 (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
<html>
<head>
    <title>Test for http://bugs.webkit.org/show_bug.cgi?id=15994</title>
    <style type="text/css">
        div {
            overflow: hidden;
        }
        div, span {
            height: 100px;
            width: 100px;
            display: block;
        }
        span.blue {
            padding: 100px 0 0 0;
            background: blue;
        }
    </style>
    <script src="resources/text-based-repaint.js" type="text/javascript"></script>
    <script type="text/javascript">
       function repaintTest()
       {
           document.getElementById('t1').removeAttribute("class");
           document.getElementById('t2').setAttribute("class", "blue");
       }
    </script>
</head>
<body onload="runRepaintTest()">
    <div style="background: green;"><span id="t1" class="blue">&nbsp;</span></div>
    <div style="position: relative; margin: -100px 0 0 100px; background: red;"><span id="t2">&nbsp;</span></div>
</body>
</html>