1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/position-sticky/top-1.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 - top, normal position</title> 1.10 + <link rel="author" title="Corey Ford" href="mailto:cford@mozilla.com"> 1.11 + <link rel="match" href="top-1-ref.html"> 1.12 + <meta name="assert" content="Sticky-top with no scrolling: should be in its normal position"> 1.13 + <style> 1.14 + #scroll { 1.15 + height: 100px; 1.16 + overflow: hidden; 1.17 + } 1.18 + #contain { 1.19 + height: 300px; 1.20 + background-color: gray; 1.21 + } 1.22 + #sticky { 1.23 + position: sticky; 1.24 + top: 10px; 1.25 + height: 10px; 1.26 + background-color: black; 1.27 + } 1.28 + #static { 1.29 + height: 10px; 1.30 + background-color: blue; 1.31 + } 1.32 + </style> 1.33 + </head> 1.34 + <body> 1.35 + <div id="scroll"> 1.36 + <div style="height: 20px"></div> 1.37 + <div id="contain"> 1.38 + <div id="sticky"></div> 1.39 + <div id="static"></div> 1.40 + </div> 1.41 + <div style="height: 100px"></div> 1.42 + </div> 1.43 + </body> 1.44 +</html>