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