1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/flexbox/flexbox-empty-1b.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,45 @@ 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 + Testcase for behavior of flex containers that have no children. This 1.11 + testcase differs from the "1a" variant in that it's got a single space 1.12 + inside each flex container (which should be ignored, since the flexbox 1.13 + spec says we shouldn't create a flex item for an entirely-whitespace run 1.14 + of inline content). 1.15 +--> 1.16 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.17 + <head> 1.18 + <style> 1.19 + div.flexbox { 1.20 + border: 1px dotted blue; 1.21 + background: yellow; 1.22 + display: flex; 1.23 + } 1.24 + 1.25 + div.withPadding { 1.26 + padding: 2px 3px 4px 5px; 1.27 + } 1.28 + </style> 1.29 + </head> 1.30 + <body> 1.31 + <div class="flexbox"> </div> 1.32 + <div class="flexbox" style="width: 5px"> </div> 1.33 + <div class="flexbox" style="width: -moz-available"> </div> 1.34 + <div class="flexbox" style="width: -moz-max-content"> </div> 1.35 + <div class="flexbox" style="width: -moz-min-content"> </div> 1.36 + <div class="flexbox" style="height: 6px"> </div> 1.37 + <div class="flexbox" style="width: 7px; height: 8px"> </div> 1.38 + 1.39 + <!-- now with padding --> 1.40 + <div class="flexbox withPadding"> </div> 1.41 + <div class="flexbox withPadding" style="width: 5px"> </div> 1.42 + <div class="flexbox withPadding" style="width: -moz-available"> </div> 1.43 + <div class="flexbox withPadding" style="width: -moz-max-content"> </div> 1.44 + <div class="flexbox withPadding" style="width: -moz-min-content"> </div> 1.45 + <div class="flexbox withPadding" style="height: 6px"> </div> 1.46 + <div class="flexbox withPadding" style="width: 7px; height: 8px"> </div> 1.47 + </body> 1.48 +</html>