1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/flexbox/flexbox-position-absolute-1-ref.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,74 @@ 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 children of a flex container. --> 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 + width: 200px; 1.27 + height: 100px; 1.28 + } 1.29 + div.a { 1.30 + width: 100%; 1.31 + height: 100px; 1.32 + background: lightgreen; 1.33 + display: inline-block; 1.34 + } 1.35 + div.b { 1.36 + width: 100%; 1.37 + height: 100px; 1.38 + background: yellow; 1.39 + display: inline-block; 1.40 + } 1.41 + div.inflex { 1.42 + width: 20px; 1.43 + height: 100px; 1.44 + background: gray; 1.45 + display: inline-block; 1.46 + } 1.47 + div.noFlexFn { 1.48 + width: 15px; 1.49 + height: 15px; 1.50 + background: teal; 1.51 + display: inline-block; 1.52 + } 1.53 + </style> 1.54 + </head> 1.55 + <body> 1.56 + <div class="containingBlock"> 1.57 + <!-- First child abspos: --> 1.58 + <div class="flexbox" 1.59 + ><div class="a abspos" style="width: 30px"/><div class="b"/></div> 1.60 + <!-- Second child abspos: --> 1.61 + <div class="flexbox" 1.62 + ><div class="a"/><div class="b abspos" style="width: 20px"/></div> 1.63 + <!-- Middle child abspos: --> 1.64 + <div class="flexbox" 1.65 + ><div class="a" style="width: 80px" 1.66 + /><div class="inflex abspos" 1.67 + /><div class="b" style="width: 120px"/></div> 1.68 + <!-- Third child abspos, w/ inflexible items & justify-content: space-around: --> 1.69 + <div class="flexbox" 1.70 + ><div class="inflex" style="margin-left: 12px" 1.71 + /><div class="inflex" style="margin-left: 24px" 1.72 + /><div class="inflex" style="margin-left: 24px" 1.73 + /><div class="noFlexFn abspos" 1.74 + /><div class="inflex" style="margin-left: 48px"/></div> 1.75 + </div> 1.76 + </body> 1.77 +</html>