layout/reftests/position-sticky/initial-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/position-sticky/initial-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     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 +<html>
     1.8 +  <head>
     1.9 +    <title>CSS Test: Sticky Positioning - initial reflow</title>
    1.10 +    <link rel="author" title="Corey Ford" href="mailto:cford@mozilla.com">
    1.11 +    <link rel="match" href="initial-1-ref.html">
    1.12 +    <meta name="assert" content="Sticky positioning should be calculated correctly on initial page reflow">
    1.13 +    <style>
    1.14 +      body {
    1.15 +        height: 100px;
    1.16 +        margin: 0;
    1.17 +        /* Without this, we do multiple passes of reflow, and
    1.18 +         * the sticky element ends up positioned correctly.
    1.19 +         */
    1.20 +        overflow-y: scroll;
    1.21 +      }
    1.22 +      #sticky {
    1.23 +        position: sticky;
    1.24 +        top: 10px;
    1.25 +        height: 10px;
    1.26 +        margin-bottom: 10px;
    1.27 +        background-color: black;
    1.28 +      }
    1.29 +    </style>
    1.30 +  <body>
    1.31 +    <div id="sticky"></div>
    1.32 +  </body>
    1.33 +</html>

mercurial