1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/position-sticky/initial-scroll-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,38 @@ 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 - initial scroll position</title> 1.10 + <link rel="author" title="Corey Ford" href="mailto:cford@mozilla.com"> 1.11 + <link rel="match" href="initial-scroll-1-ref.html"> 1.12 + <meta name="assert" content="When the initial scroll position of the scroll container is not (0, 0), a sticky element inside it should be positioned correctly"> 1.13 + <style> 1.14 + #scroll { 1.15 + width: 100px; 1.16 + height: 100px; 1.17 + overflow: hidden; 1.18 + direction: rtl; 1.19 + } 1.20 + #inner { 1.21 + width: 200px; 1.22 + height: 200px; 1.23 + direction: ltr; 1.24 + } 1.25 + #sticky { 1.26 + position: sticky; 1.27 + left: 10px; 1.28 + width: 10px; 1.29 + height: 10px; 1.30 + background-color: black; 1.31 + } 1.32 + </style> 1.33 + <body> 1.34 + <div id="scroll"> 1.35 + <div id="inner"> 1.36 + <div id="sticky"> 1.37 + </div> 1.38 + </div> 1.39 + </div> 1.40 + </body> 1.41 +</html>