summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/transform-replaced-shadows.html
blob: b7067e23ae10a5bc5cab3d2c29634c17937c2b02 (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
<html>
<head>
  <title>Scaling and box-shadow</title>
  <style type="text/css" media="screen">
    #box {
      height: 100px;
      width: 100px;
      margin: 20px;
      background-color: gray;
      -webkit-transform-origin: top left;
      -webkit-box-shadow: 0px 20px 20px black;
      transform: scale(2);
    }
    
    #box.smaller {
      transform: scale(1);
    }
  </style>

  <script src="resources/text-based-repaint.js" type="text/javascript" charset="utf-8"></script>
  <script type="text/javascript" charset="utf-8">
    function repaintTest()
    {
      document.getElementById('box').className = 'smaller';
    }
  </script>
</head>
<body onload="runRepaintTest()">

<img id="box">

</body>
</html>