layout/reftests/flexbox/flexbox-empty-1b.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 Testcase for behavior of flex containers that have no children. This
michael@0 8 testcase differs from the "1a" variant in that it's got a single space
michael@0 9 inside each flex container (which should be ignored, since the flexbox
michael@0 10 spec says we shouldn't create a flex item for an entirely-whitespace run
michael@0 11 of inline content).
michael@0 12 -->
michael@0 13 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 14 <head>
michael@0 15 <style>
michael@0 16 div.flexbox {
michael@0 17 border: 1px dotted blue;
michael@0 18 background: yellow;
michael@0 19 display: flex;
michael@0 20 }
michael@0 21
michael@0 22 div.withPadding {
michael@0 23 padding: 2px 3px 4px 5px;
michael@0 24 }
michael@0 25 </style>
michael@0 26 </head>
michael@0 27 <body>
michael@0 28 <div class="flexbox"> </div>
michael@0 29 <div class="flexbox" style="width: 5px"> </div>
michael@0 30 <div class="flexbox" style="width: -moz-available"> </div>
michael@0 31 <div class="flexbox" style="width: -moz-max-content"> </div>
michael@0 32 <div class="flexbox" style="width: -moz-min-content"> </div>
michael@0 33 <div class="flexbox" style="height: 6px"> </div>
michael@0 34 <div class="flexbox" style="width: 7px; height: 8px"> </div>
michael@0 35
michael@0 36 <!-- now with padding -->
michael@0 37 <div class="flexbox withPadding"> </div>
michael@0 38 <div class="flexbox withPadding" style="width: 5px"> </div>
michael@0 39 <div class="flexbox withPadding" style="width: -moz-available"> </div>
michael@0 40 <div class="flexbox withPadding" style="width: -moz-max-content"> </div>
michael@0 41 <div class="flexbox withPadding" style="width: -moz-min-content"> </div>
michael@0 42 <div class="flexbox withPadding" style="height: 6px"> </div>
michael@0 43 <div class="flexbox withPadding" style="width: 7px; height: 8px"> </div>
michael@0 44 </body>
michael@0 45 </html>

mercurial