1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/flexbox/flexbox-position-absolute-4-ref.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,50 @@ 1.4 +<?xml version="1.0" encoding="UTF-8"?> 1.5 +<!-- 1.6 + Any copyright is dedicated to the Public Domain. 1.7 + http://creativecommons.org/publicdomain/zero/1.0/ 1.8 +--> 1.9 +<!-- Reference case for absolutely positioned flex container & children. --> 1.10 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.11 + <head> 1.12 + <style> 1.13 + div.containingBlock { 1.14 + top: 15px; 1.15 + left: 20px; 1.16 + height: 400px; 1.17 + position: absolute; 1.18 + border: 2px dashed purple; 1.19 + } 1.20 + .abspos { 1.21 + position: absolute; 1.22 + left: 5px; 1.23 + border: 2px dotted black; 1.24 + } 1.25 + div.flexbox { 1.26 + top: 30px; 1.27 + left: 40px; 1.28 + width: 200px; 1.29 + height: 100px; 1.30 + position: absolute; 1.31 + border: 1px solid black; 1.32 + } 1.33 + div.a { 1.34 + width: 30px; 1.35 + height: 100px; 1.36 + background: lightgreen; 1.37 + display: inline-block; 1.38 + } 1.39 + div.b { 1.40 + width: 100%; 1.41 + height: 100px; 1.42 + background: yellow; 1.43 + display: inline-block; 1.44 + } 1.45 + </style> 1.46 + </head> 1.47 + <body> 1.48 + <div class="containingBlock"> 1.49 + <div class="flexbox" 1.50 + ><div class="a abspos"/><div class="b"/></div> 1.51 + </div> 1.52 + </body> 1.53 +</html>