layout/reftests/w3c-css/submitted/flexbox/flexbox-whitespace-handling-2.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 preserve whitespace at the beginning & end of
michael@0 8 anonymous flex items (using "white-space: pre" so that it actually
michael@0 9 occupies space and affects the rendering).
michael@0 10 -->
michael@0 11 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 12 <head>
michael@0 13 <title>CSS Test: Test that whitespace is preserved at the edges of anonymous flex items if 'white-space: pre' is set</title>
michael@0 14 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/>
michael@0 15 <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-items"/>
michael@0 16 <link rel="match" href="flexbox-whitespace-handling-2-ref.xhtml"/>
michael@0 17 <link rel="stylesheet" type="text/css" href="support/ahem.css" />
michael@0 18 <style>
michael@0 19 div { height: 100px; }
michael@0 20 div.flexbox {
michael@0 21 white-space: pre;
michael@0 22 border: 1px dashed blue;
michael@0 23 width: 200px;
michael@0 24 display: flex;
michael@0 25 justify-content: space-around;
michael@0 26 }
michael@0 27 div.a {
michael@0 28 width: 30px;
michael@0 29 background: lightgreen;
michael@0 30 }
michael@0 31 div.b {
michael@0 32 width: 20px;
michael@0 33 background: lightblue;
michael@0 34 }
michael@0 35 </style>
michael@0 36 </head>
michael@0 37 <body>
michael@0 38 <!-- spaces around inline content at the beginning of flexbox -->
michael@0 39 <div class="flexbox"> abc<div class="a"/></div>
michael@0 40 <div class="flexbox">abc <div class="a"/></div>
michael@0 41 <div class="flexbox"> abc <div class="a"/></div>
michael@0 42
michael@0 43 <!-- spaces around inline content at the end of flexbox -->
michael@0 44 <div class="flexbox"><div class="a"/> abc</div>
michael@0 45 <div class="flexbox"><div class="a"/>abc </div>
michael@0 46 <div class="flexbox"><div class="a"/> abc </div>
michael@0 47
michael@0 48 <!-- whitespace around inline content in between flex items -->
michael@0 49 <div class="flexbox"><div class="a"/> abc<div class="b"/></div>
michael@0 50 <div class="flexbox"><div class="a"/>abc <div class="b"/></div>
michael@0 51 <div class="flexbox"><div class="a"/> abc <div class="b"/></div>
michael@0 52 </body>
michael@0 53 </html>
michael@0 54

mercurial