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