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

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 <!DOCTYPE html>
     2 <!-- Any copyright is dedicated to the Public Domain.
     3    - http://creativecommons.org/publicdomain/zero/1.0/ -->
     4 <html>
     5   <head>
     6     <title>CSS Test: Sticky Positioning - support test</title>
     7     <link rel="author" title="Corey Ford" href="mailto:cford@mozilla.com">
     8     <link rel="match" href="pref-1-ref.html">
     9     <meta name="assert" content="This test indicates whether sticky positioning is enabled.">
    10     <style>
    11       body {
    12         margin: 0;
    13         line-height: 1;
    14       }
    15       #sticky {
    16         position: absolute;
    17         position: sticky;
    18         left: -100%;
    19         width: 100%;
    20         padding-bottom: 1em;
    21         margin-bottom: -1em;
    22         background: white;
    23       }
    24     </style>
    25   </head>
    26   <body>
    27     <p>
    28       "position: sticky" is:
    29       <!-- If sticky positioned, this will cover up "disabled" below: -->
    30       <div id="sticky">enabled</div>
    31       <div>disabled</div>
    32     </p>
    33   </body>
    34 </html>

mercurial