summaryrefslogtreecommitdiffstats
path: root/layout/reftests/position-dynamic-changes/max-width.html
blob: 95e51157e063281d16711a12713ccbe1065a3403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<html class="reftest-wait">
  <body>
    <style>
      #a { border: 1px solid black; max-width: 100px; height: 100px; }
    </style>
    <script>
      document.addEventListener("MozReftestInvalidate", function() {
        var a = document.querySelector("#a");
        a.style.maxWidth = "200px";
        document.documentElement.removeAttribute("class");
      });
    </script>
    <div id="a">
    </div>
  </body>
</html>