1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/position-sticky/scrollframe-auto-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 +<!-- Percentage sticky offsets should be computed correctly when 1.8 + - the scroll container is auto-sized --> 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-auto-1-ref.html"> 1.13 + <style> 1.14 + body { 1.15 + /* even on initial reflow */ 1.16 + overflow: scroll; 1.17 + } 1.18 + #scroll { 1.19 + height: auto; 1.20 + overflow: hidden; 1.21 + border: 1px solid black; 1.22 + } 1.23 + #sticky { 1.24 + position: sticky; 1.25 + height: 10px; 1.26 + top: 50%; 1.27 + background-color: black; 1.28 + } 1.29 + .fill { 1.30 + height: 200px; 1.31 + } 1.32 + </style> 1.33 + <body> 1.34 + <div id="scroll"> 1.35 + <div id="sticky"></div> 1.36 + <div class="fill"></div> 1.37 + </div> 1.38 + </body> 1.39 +</html>