layout/reftests/flexbox/flexbox-float-2a.xhtml

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

michael@0 1 <?xml version="1.0" encoding="UTF-8"?>
michael@0 2 <!--
michael@0 3 Any copyright is dedicated to the Public Domain.
michael@0 4 http://creativecommons.org/publicdomain/zero/1.0/
michael@0 5 -->
michael@0 6 <!--
michael@0 7 This test verifies that 'float' on a grandchild of a flex container _will_
michael@0 8 cause the element to be floated.
michael@0 9 -->
michael@0 10 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 11 <head>
michael@0 12 <style>
michael@0 13 div.flexbox {
michael@0 14 display: flex;
michael@0 15 font-family: sans-serif;
michael@0 16 width: 400px;
michael@0 17 margin-bottom: 2px;
michael@0 18 background: lightgreen;
michael@0 19 justify-content: space-around;
michael@0 20 }
michael@0 21 </style>
michael@0 22 </head>
michael@0 23 <body>
michael@0 24 <!-- These cases have a floated span as a grandchild of the flex container.
michael@0 25 The span should float within its flex item. -->
michael@0 26 <div class="flexbox">
michael@0 27 <span>aaa<span style="float: left">lll</span>bbb</span>
michael@0 28 </div>
michael@0 29 <div class="flexbox">
michael@0 30 <span>aaa<span style="float: right">rrr</span>bbb</span>
michael@0 31 </div>
michael@0 32
michael@0 33 <!-- These cases have a floated div as a grandchild of the flex container.
michael@0 34 The div should float within its flex item. -->
michael@0 35 <div class="flexbox">
michael@0 36 <span>aaa<div style="float: left">lll</div>bbb</span>
michael@0 37 </div>
michael@0 38 <div class="flexbox">
michael@0 39 <span>aaa<div style="float: right">rrr</div>bbb</span>
michael@0 40 </div>
michael@0 41 </body>
michael@0 42 </html>

mercurial