1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/position-sticky/scrollframe-auto-1-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 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 + <style> 1.13 + body { 1.14 + overflow: scroll; 1.15 + } 1.16 + #scroll { 1.17 + height: auto; 1.18 + overflow: hidden; 1.19 + border: 1px solid black; 1.20 + } 1.21 + #sticky { 1.22 + position: relative; 1.23 + height: 10px; 1.24 + top: 105px; 1.25 + background-color: black; 1.26 + } 1.27 + .fill { 1.28 + height: 200px; 1.29 + } 1.30 + </style> 1.31 + <body> 1.32 + <div id="scroll"> 1.33 + <div id="sticky"></div> 1.34 + <div class="fill"></div> 1.35 + </div> 1.36 + </body> 1.37 +</html>