1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/position-sticky/stacking-context-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,45 @@ 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 - stacking context</title> 1.10 + <link rel="author" title="Corey Ford" href="mailto:cford@mozilla.com"> 1.11 + <link rel="match" href="stacking-context-1-ref.html"> 1.12 + <meta name="assert" content="Sticky positioning should establish a stacking context"> 1.13 + <style> 1.14 + body { 1.15 + margin: 0; 1.16 + } 1.17 + div { 1.18 + width: 100px; 1.19 + height: 100px; 1.20 + } 1.21 + #static { 1.22 + position: absolute; 1.23 + top: 20px; 1.24 + left: 20px; 1.25 + background-color: blue; 1.26 + z-index: 1; 1.27 + } 1.28 + #sticky { 1.29 + position: sticky; 1.30 + top: 0; 1.31 + left: 0; 1.32 + background-color: black; 1.33 + } 1.34 + #inner { 1.35 + position: relative; 1.36 + top: 40px; 1.37 + left: 40px; 1.38 + background-color: gray; 1.39 + z-index: 2; 1.40 + } 1.41 + </style> 1.42 + <body> 1.43 + <div id="static"></div> 1.44 + <div id="sticky"> 1.45 + <div id="inner"></div> 1.46 + </div> 1.47 + </body> 1.48 +</html>