layout/reftests/position-sticky/initial-1-ref.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-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     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 +    <link rel="author" title="Corey Ford" href="mailto:cford@mozilla.com">
    1.10 +    <style>
    1.11 +      body {
    1.12 +        height: 100px;
    1.13 +        margin: 0;
    1.14 +        /* Without this, we do multiple passes of reflow, and
    1.15 +         * the sticky element ends up positioned correctly.
    1.16 +         */
    1.17 +        overflow-y: scroll;
    1.18 +      }
    1.19 +      #sticky {
    1.20 +        position: relative;
    1.21 +        top: 10px;
    1.22 +        height: 10px;
    1.23 +        margin-bottom: 10px;
    1.24 +        background-color: black;
    1.25 +      }
    1.26 +    </style>
    1.27 +  <body>
    1.28 +    <div id="sticky"></div>
    1.29 +  </body>
    1.30 +</html>

mercurial