layout/reftests/flexbox/flexbox-invalidation-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/flexbox/flexbox-invalidation-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,47 @@
     1.4 +<!DOCTYPE html>
     1.5 +<!--
     1.6 +     Any copyright is dedicated to the Public Domain.
     1.7 +     http://creativecommons.org/publicdomain/zero/1.0/
     1.8 +-->
     1.9 +<!--
    1.10 +     This test verifies that we include our children's overflow areas in the
    1.11 +     flex container's overflow area -- invalidating their old location and new
    1.12 +     location when the flex container is moved, even if they stick outside the
    1.13 +     flex container.
    1.14 +-->
    1.15 +<html class="reftest-wait">
    1.16 +  <head>
    1.17 +    <script>
    1.18 +      function tweak() {
    1.19 +        var outer = document.getElementById("outer");
    1.20 +        outer.style.marginLeft = "40px";
    1.21 +
    1.22 +        document.documentElement.removeAttribute("class");
    1.23 +      }
    1.24 +
    1.25 +      window.addEventListener("MozReftestInvalidate", tweak, false);
    1.26 +    </script>
    1.27 +    <style>
    1.28 +      div#flexContainer {
    1.29 +        width: 100px;
    1.30 +        height: 50px;
    1.31 +        background: lightgray;
    1.32 +        display: flex;
    1.33 +        justify-content: center;
    1.34 +      }
    1.35 +
    1.36 +      div#flexItem {
    1.37 +        border: 1px solid black;
    1.38 +        height: 200%;
    1.39 +        background: purple;
    1.40 +      }
    1.41 +    </style>
    1.42 +  </head>
    1.43 +  <body>
    1.44 +    <div id="outer">
    1.45 +      <div id="flexContainer">
    1.46 +        <div id="flexItem">item</div>
    1.47 +      </div>
    1.48 +    </div>
    1.49 +  </body>
    1.50 +</html>

mercurial