1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/position-sticky/block-in-inline-1-ref.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 - block inside inline, normal position</title> 1.10 + <link rel="author" title="L. David Baron" href="mailto:dbaron@mozilla.com"> 1.11 + <link rel="stylesheet" type="text/css" href="ahem.css"> 1.12 + <style> 1.13 + #scroll { 1.14 + height: 100px; 1.15 + overflow: hidden; 1.16 + font: 20px/1 Ahem; 1.17 + } 1.18 + #contain { 1.19 + height: 100px; 1.20 + } 1.21 + .sticky { 1.22 + position: relative; 1.23 + top: 0; 1.24 + } 1.25 + .notsticky { 1.26 + position: relative; 1.27 + top: 0; 1.28 + } 1.29 + </style> 1.30 + </head> 1.31 + <body> 1.32 + <div id="scroll"> 1.33 + <div style="height: 20px"></div> 1.34 + <div id="contain"> 1.35 + <span class="notsticky">before inline</span> 1.36 + <span class="sticky">before block</span> 1.37 + <div><span class="sticky">in block</span></div> 1.38 + <span class="sticky">after block</span> 1.39 + <span class="notsticky">after inline</span> 1.40 + </div> 1.41 + <div style="height: 100px"></div> 1.42 + </div> 1.43 + </body> 1.44 +</html>