summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/create-layer-repaint.html
blob: 1553142d62ab4af153dcc7759e07e9ae5e61cad7 (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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  <title>CSS Transition test case</title>
  <style type="text/css" media="screen">
    .stretchy {
      background: green;
      opacity: 0.5;
      height: 50px;
      width: 250px;
      margin: 20px;
    }
    
    .stretchy.big {
      background: red;
      opacity: 1;
      width: 500px;
    }
  </style>
  <script src="resources/text-based-repaint.js" type="text/javascript"></script>
  <script>
    function repaintTest()
    {
      document.getElementById('test').className = 'stretchy';
    }
  </script>
</head>
<body onload="runRepaintTest()">
  <p>If you see red, the test failed</p>
  <div id="test" class="big stretchy"></div>
</body>
</html>