1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-whitespace-handling-2.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,54 @@ 1.4 +<?xml version="1.0" encoding="UTF-8"?> 1.5 +<!-- 1.6 + Any copyright is dedicated to the Public Domain. 1.7 + http://creativecommons.org/publicdomain/zero/1.0/ 1.8 +--> 1.9 +<!-- 1.10 + This test verifies that we preserve whitespace at the beginning & end of 1.11 + anonymous flex items (using "white-space: pre" so that it actually 1.12 + occupies space and affects the rendering). 1.13 +--> 1.14 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.15 + <head> 1.16 + <title>CSS Test: Test that whitespace is preserved at the edges of anonymous flex items if 'white-space: pre' is set</title> 1.17 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> 1.18 + <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-items"/> 1.19 + <link rel="match" href="flexbox-whitespace-handling-2-ref.xhtml"/> 1.20 + <link rel="stylesheet" type="text/css" href="support/ahem.css" /> 1.21 + <style> 1.22 + div { height: 100px; } 1.23 + div.flexbox { 1.24 + white-space: pre; 1.25 + border: 1px dashed blue; 1.26 + width: 200px; 1.27 + display: flex; 1.28 + justify-content: space-around; 1.29 + } 1.30 + div.a { 1.31 + width: 30px; 1.32 + background: lightgreen; 1.33 + } 1.34 + div.b { 1.35 + width: 20px; 1.36 + background: lightblue; 1.37 + } 1.38 + </style> 1.39 + </head> 1.40 + <body> 1.41 + <!-- spaces around inline content at the beginning of flexbox --> 1.42 + <div class="flexbox"> abc<div class="a"/></div> 1.43 + <div class="flexbox">abc <div class="a"/></div> 1.44 + <div class="flexbox"> abc <div class="a"/></div> 1.45 + 1.46 + <!-- spaces around inline content at the end of flexbox --> 1.47 + <div class="flexbox"><div class="a"/> abc</div> 1.48 + <div class="flexbox"><div class="a"/>abc </div> 1.49 + <div class="flexbox"><div class="a"/> abc </div> 1.50 + 1.51 + <!-- whitespace around inline content in between flex items --> 1.52 + <div class="flexbox"><div class="a"/> abc<div class="b"/></div> 1.53 + <div class="flexbox"><div class="a"/>abc <div class="b"/></div> 1.54 + <div class="flexbox"><div class="a"/> abc <div class="b"/></div> 1.55 + </body> 1.56 +</html> 1.57 +