layout/reftests/w3c-css/submitted/flexbox/flexbox-whitespace-handling-1a.xhtml

Thu, 15 Jan 2015 21:13:52 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:13:52 +0100
branch
TOR_BUG_9701
changeset 12
7540298fafa1
permissions
-rw-r--r--

Remove forgotten relic of ABI crash risk averse overloaded method change.

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 we don't create anonymous flex items around
michael@0 8 runs of inline content that are _purely_ whitespace.
michael@0 9
michael@0 10 The test uses "white-space: pre", to try to tempt us into honoring
michael@0 11 that whitespace. (but we should resist that temptation).
michael@0 12
michael@0 13 The test also uses 'justify-content: space-around' to be sure we can
michael@0 14 tell whether anonymous flex items are being created around the whitespace
michael@0 15 (since they'd claim a share of the packing space if they were there).
michael@0 16 -->
michael@0 17 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 18 <head>
michael@0 19 <title>CSS Test: Test that anonymous flex items aren't created for pure-whitespace inline content</title>
michael@0 20 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
michael@0 21 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-items"/>
michael@0 22 <link rel="match" href="flexbox-whitespace-handling-1-ref.xhtml"/>
michael@0 23 <style>
michael@0 24 div { height: 100px; }
michael@0 25 div.flexbox {
michael@0 26 white-space: pre;
michael@0 27 border: 1px dashed blue;
michael@0 28 width: 200px;
michael@0 29 display: flex;
michael@0 30 justify-content: space-around;
michael@0 31 }
michael@0 32 div.a {
michael@0 33 flex: none;
michael@0 34 width: 30px;
michael@0 35 background: lightgreen;
michael@0 36 }
michael@0 37 div.b {
michael@0 38 flex: none;
michael@0 39 width: 20px;
michael@0 40 background: lightblue;
michael@0 41 }
michael@0 42 img { width: 40px; }
michael@0 43 </style>
michael@0 44 </head>
michael@0 45 <body>
michael@0 46 <!-- whitespace & tab after flex item -->
michael@0 47 <div class="flexbox"><div class="a"/> </div>
michael@0 48
michael@0 49 <!-- 2 spaces before flex item -->
michael@0 50 <div class="flexbox"> <div class="a"/><div class="b"/></div>
michael@0 51
michael@0 52 <!-- newline & whitespace between flex items -->
michael@0 53 <div class="flexbox"><img src="solidblue.png"/>
michael@0 54 <img src="solidblue.png"/></div>
michael@0 55 </body>
michael@0 56 </html>
michael@0 57

mercurial