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

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

     1 <!DOCTYPE html>
     2 <!-- Any copyright is dedicated to the Public Domain.
     3    - http://creativecommons.org/publicdomain/zero/1.0/ -->
     4 <!-- When the scroll container is resized (without reflowing its contents),
     5    - offsets for sticky elements inside it should be recomputed -->
     6 <html>
     7   <head>
     8     <link rel="author" title="Corey Ford" href="mailto:cford@mozilla.com">
     9     <link rel="match" href="scrollframe-reflow-2-ref.html">
    10     <meta name="flags" content="dom">
    11     <style>
    12       #scroll {
    13         height: 100px;
    14         overflow: hidden;
    15         border: 1px solid black;
    16       }
    17       #sticky {
    18         position: sticky;
    19         height: 10px;
    20         top: 50%;
    21         background-color: black;
    22       }
    23       .fill {
    24         height: 1000px;
    25       }
    26     </style>
    27   <body>
    28     <div id="scroll">
    29       <div id="sticky"></div>
    30       <div class="fill"></div>
    31     </div>
    32     <script type="text/javascript">
    33       document.getElementById("scroll").style.height = "120px";
    34     </script>
    35   </body>
    36 </html>

mercurial