1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/position-sticky/padding-2.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,41 @@ 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 + <title>CSS Test: Sticky Positioning - offsets reference</title> 1.10 + <link rel="author" title="Corey Ford" href="mailto:cford@mozilla.com"> 1.11 + <link rel="match" href="padding-2-ref.html"> 1.12 + <meta name="flags" content="dom"> 1.13 + <meta name="assert" content="Offsets should position the element with respect to the content box of the scrolling container"> 1.14 + <style> 1.15 + #scroll { 1.16 + width: 80px; 1.17 + height: 80px; 1.18 + overflow: hidden; 1.19 + border: 10px solid black; 1.20 + padding: 10px; 1.21 + } 1.22 + #sticky { 1.23 + position: sticky; 1.24 + width: 10px; 1.25 + height: 10px; 1.26 + top: 20px; 1.27 + background-color: black; 1.28 + } 1.29 + .fill { 1.30 + width: 1000px; 1.31 + height: 1000px; 1.32 + } 1.33 + </style> 1.34 + <body> 1.35 + <div id="scroll"> 1.36 + <div class="fill"></div> 1.37 + <div id="sticky"></div> 1.38 + <div class="fill"></div> 1.39 + </div> 1.40 + <script type="application/javascript"> 1.41 + document.getElementById('scroll').scrollTop = 1100; 1.42 + </script> 1.43 + </body> 1.44 +</html>