1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/margin-collapsing/block-abs-pos-1-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,34 @@ 1.4 +<!DOCTYPE html> 1.5 +<html> 1.6 +<head> 1.7 +<!-- Note: CSS 2.1 allows guessing the static position of an absolutely 1.8 + positioned element whose offsets are 'auto' (initial value), i.e. 1.9 + the reference of this test is just one of many possible outcomes. 1.10 + See http://www.w3.org/TR/CSS21/visudet.html#abs-non-replaced-width --> 1.11 +<style type="text/css"> 1.12 +#in-flow-top { 1.13 + height: 20px; 1.14 + background-color: green; 1.15 +} 1.16 +#abs-pos { 1.17 + width: 20px; height: 20px; 1.18 + background-color: blue; 1.19 + position: relative; 1.20 + top: -10px; 1.21 +} 1.22 +#in-flow-bottom { 1.23 + height: 20px; 1.24 + background-color: lightgreen; 1.25 +} 1.26 +#spacer { 1.27 + height: 20px; 1.28 +} 1.29 +</style> 1.30 +</head> 1.31 +<body> 1.32 +<div id="in-flow-top"></div> 1.33 +<div id="spacer"></div> 1.34 +<div id="in-flow-bottom"></div> 1.35 +<div id="abs-pos"></div> 1.36 +</body> 1.37 +</html>