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

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

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 direct child of a flexbox won't
michael@0 8 actually cause it 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 width: 400px;
michael@0 16 margin-bottom: 2px;
michael@0 17 font-family: sans-serif;
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 span as a direct child of the flexbox. The span
michael@0 25 should become display:block (and hence form its own flex item),
michael@0 26 but it shouldn't actually float.
michael@0 27 -->
michael@0 28 <div class="flexbox">
michael@0 29 aaa<span style="float: left">[[[</span>bbb
michael@0 30 </div>
michael@0 31 <div class="flexbox">
michael@0 32 aaa<span style="float: right">]]]</span>bbb
michael@0 33 </div>
michael@0 34 <div class="flexbox">
michael@0 35 aaa<span style="float: left">[[[</span>
michael@0 36 </div>
michael@0 37 <div class="flexbox">
michael@0 38 aaa<span style="float: right">]]]</span>
michael@0 39 </div>
michael@0 40 <div class="flexbox">
michael@0 41 <span style="float: left">[[[</span>bbb
michael@0 42 </div>
michael@0 43 <div class="flexbox">
michael@0 44 <span style="float: right">]]]</span>bbb
michael@0 45 </div>
michael@0 46 </body>
michael@0 47 </html>

mercurial