1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/position-sticky/containing-block-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,35 @@ 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 - absolute containing block</title> 1.10 + <link rel="author" title="Corey Ford" href="mailto:cford@mozilla.com"> 1.11 + <link rel="match" href="containing-block-1-ref.html"> 1.12 + <meta name="assert" content="Sticky positioned elements should establish a containing block for absolutely positioned descendants"> 1.13 + <style> 1.14 + body { 1.15 + height: 200px; 1.16 + margin: 0; 1.17 + } 1.18 + #sticky { 1.19 + position: sticky; 1.20 + top: 100px; 1.21 + height: 10px; 1.22 + background-color: black; 1.23 + } 1.24 + #absolute { 1.25 + position: absolute; 1.26 + top: 5px; 1.27 + left: 5px; 1.28 + width: 10px; 1.29 + height: 10px; 1.30 + background-color: blue; 1.31 + } 1.32 + </style> 1.33 + <body> 1.34 + <div id="sticky"> 1.35 + <div id="absolute"></div> 1.36 + </div> 1.37 + </body> 1.38 +</html>