summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/positioned-document-element.html
blob: b0d3d872204bb1d292b97b4acece5072bfe31bfb (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
<!DOCTYPE html>

<html>
<head>
  <style type="text/css" media="screen">
    html {
      background-color: red;
    }
    html.changed {
      position: absolute;
      top: 100px;
      left: 100px;
      background-color: green;
    }
  </style>
  <script src="resources/text-based-repaint.js" type="text/javascript"></script>
  <script type="text/javascript">
      function repaintTest()
      {
          document.documentElement.className = 'changed';
      }
  </script>
</head>
<body onload="runRepaintTest()">
  <p>Tests that the entire viewport is painted with a floated html element.</p>
</body>
</html>