summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/outline-child-repaint.html
blob: 292a79b09ec297dc829173295c64234464b04934 (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
<html>
<head>
    <script src="resources/text-based-repaint.js" type="text/javascript"></script>
    <script type="text/javascript">
        function repaintTest()
        {
            var container = document.getElementById('container');
            container.style.top = "250px";
        }
    </script>
    <style type="text/css" media="screen">
      #container {
        position: absolute;
        left: 10px;
        top: 150px;
        width: 200px;
        height: 50px;
      }
      .outlined {
        outline: 10px solid green;
        height: 30px;
        background-color: #DDD;
      }

      #underlay {
        position: absolute;
        top: 240px;
        left: 0px;
        width: 200px;
        height: 30px;
        border: 10px solid red;
      }
    </style>
</head>
<body onload="runRepaintTest();">
    <p>
        This is a repaint test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=22159">https://bugs.webkit.org/show_bug.cgi?id=22159</a>
        Repaint issue with outlines in child objects</i>.
    </p>
    <p>If the test passes, you should not see any red below</p>
    <hr>

    <div id="underlay">
    </div>
    <div id="container">
      <div class="outlined">
      </div>
    </div>
</body>
</html>