1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/flexbox/flexbox-float-2a.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,42 @@ 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 +<!-- 1.10 + This test verifies that 'float' on a grandchild of a flex container _will_ 1.11 + cause the element to be floated. 1.12 +--> 1.13 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.14 + <head> 1.15 + <style> 1.16 + div.flexbox { 1.17 + display: flex; 1.18 + font-family: sans-serif; 1.19 + width: 400px; 1.20 + margin-bottom: 2px; 1.21 + background: lightgreen; 1.22 + justify-content: space-around; 1.23 + } 1.24 + </style> 1.25 + </head> 1.26 + <body> 1.27 + <!-- These cases have a floated span as a grandchild of the flex container. 1.28 + The span should float within its flex item. --> 1.29 + <div class="flexbox"> 1.30 + <span>aaa<span style="float: left">lll</span>bbb</span> 1.31 + </div> 1.32 + <div class="flexbox"> 1.33 + <span>aaa<span style="float: right">rrr</span>bbb</span> 1.34 + </div> 1.35 + 1.36 + <!-- These cases have a floated div as a grandchild of the flex container. 1.37 + The div should float within its flex item. --> 1.38 + <div class="flexbox"> 1.39 + <span>aaa<div style="float: left">lll</div>bbb</span> 1.40 + </div> 1.41 + <div class="flexbox"> 1.42 + <span>aaa<div style="float: right">rrr</div>bbb</span> 1.43 + </div> 1.44 + </body> 1.45 +</html>