summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/box-shadow/shadow-buffer-partial.html
blob: b42dedd1d3c61287e563b6355668a0e460a94755 (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
<!DOCTYPE html>

<html>
<head>
  <style type="text/css">
    .container {
        height: 50px;
        width: 200px;
        margin: 30px;
        -webkit-box-shadow: 0 0 40px black;
    }
    
    .clipper {
      margin-top: 100px;
      height: 50px;
      width: 200px;
      margin: 30px;
      overflow: hidden;
      border: 1px solid black;
    }
    
    .inner {
      height: 30px;
      width: 100%;
      margin-top: -40px;
      -webkit-box-shadow: 0 0 40px black;
      border: 1px solid blue;
    }
  </style>
</head>
<body>
  <!-- First shadowed box sets up a cached buffer. -->
  <div class="container"></div>

  <!-- Second clipped box tests the bug. -->
  <!-- There should not be a band of the shadow color inside this box. -->
  <div class="clipper">
    <div class="inner">
    </div>
  </div>

</body>
</html>