layout/reftests/position-sticky/scrollframe-reflow-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/position-sticky/scrollframe-reflow-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,36 @@
     1.4 +<!DOCTYPE html>
     1.5 +<!-- Any copyright is dedicated to the Public Domain.
     1.6 +   - http://creativecommons.org/publicdomain/zero/1.0/ -->
     1.7 +<!-- When the scroll container is resized (without reflowing its contents),
     1.8 +   - sticky elements inside it should be repositioned -->
     1.9 +<html>
    1.10 +  <head>
    1.11 +    <link rel="author" title="Corey Ford" href="mailto:cford@mozilla.com">
    1.12 +    <link rel="match" href="scrollframe-reflow-1-ref.html">
    1.13 +    <meta name="flags" content="dom">
    1.14 +    <style>
    1.15 +      #scroll {
    1.16 +        height: 100px;
    1.17 +        overflow: hidden;
    1.18 +        border: 1px solid black;
    1.19 +      }
    1.20 +      #sticky {
    1.21 +        position: sticky;
    1.22 +        height: 10px;
    1.23 +        bottom: 10px;
    1.24 +        background-color: black;
    1.25 +      }
    1.26 +      .fill {
    1.27 +        height: 1000px;
    1.28 +      }
    1.29 +    </style>
    1.30 +  <body>
    1.31 +    <div id="scroll">
    1.32 +      <div class="fill"></div>
    1.33 +      <div id="sticky"></div>
    1.34 +    </div>
    1.35 +    <script type="text/javascript">
    1.36 +      document.getElementById("scroll").style.height = "120px";
    1.37 +    </script>
    1.38 +  </body>
    1.39 +</html>

mercurial