1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/position-sticky/padding-3.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,39 @@ 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, bottom/right</title> 1.10 + <link rel="author" title="Corey Ford" href="mailto:cford@mozilla.com"> 1.11 + <link rel="match" href="padding-3-ref.html"> 1.12 + <meta name="assert" content="Bottom/right offsets should position the element with respect to the content box of the scrolling container"> 1.13 + <style> 1.14 + body { 1.15 + font-size: 0px; 1.16 + } 1.17 + #scroll { 1.18 + width: 80px; 1.19 + height: 80px; 1.20 + overflow: scroll; 1.21 + border: 10px solid black; 1.22 + padding: 10px; 1.23 + white-space: nowrap; 1.24 + } 1.25 + #sticky { 1.26 + position: sticky; 1.27 + bottom: 20px; 1.28 + right: 20px; 1.29 + display: inline-block; 1.30 + width: 10px; 1.31 + height: 10px; 1.32 + background-color: black; 1.33 + } 1.34 + </style> 1.35 + <body> 1.36 + <div id="scroll"> 1.37 + <div style="height: 90px; width: 100px"></div> 1.38 + <div style="display: inline-block; width: 90px; height: 10px"></div 1.39 + ><div id="sticky"></div> 1.40 + </div> 1.41 + </body> 1.42 +</html>