1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/w3c-css/submitted/flexbox/flexbox-flex-wrap-horiz-1.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,97 @@ 1.4 +<!DOCTYPE html> 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 +<html> 1.10 +<head> 1.11 + <title>CSS Test: Testing flex-wrap in horizontal flex containers</title> 1.12 + <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> 1.13 + <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-wrap-property"> 1.14 + <link rel="match" href="flexbox-flex-wrap-horiz-1-ref.html"> 1.15 + <meta charset="utf-8"> 1.16 + <style> 1.17 + div.flexbox { 1.18 + display: flex; 1.19 + flex-wrap: wrap; 1.20 + border: 1px dashed black; 1.21 + width: 100px; 1.22 + height: 12px; 1.23 + margin-bottom: 2px; 1.24 + } 1.25 + div.halfMainSize { 1.26 + width: 48px; 1.27 + border: 1px solid blue; 1.28 + background: lightblue; 1.29 + } 1.30 + div.hugeMainSize { 1.31 + width: 148px; 1.32 + border: 1px solid purple; 1.33 + background: fuchsia; 1.34 + } 1.35 + </style> 1.36 +</head> 1.37 +<body> 1.38 + 1.39 + <!-- Single small flex item --> 1.40 + <div class="flexbox"> 1.41 + <div class="halfMainSize"></div> 1.42 + </div> 1.43 + 1.44 + <!-- Single small flex item with 'margin-left' set to push it to protrude 1.45 + from the far edge of the container (and to shrink as a result) --> 1.46 + <div class="flexbox"> 1.47 + <div class="halfMainSize" style="margin-left: 80px"></div> 1.48 + </div> 1.49 + 1.50 + <!-- Single small inflexible flex item with 'margin-left' set to push it to 1.51 + protrude from the far edge of the container --> 1.52 + <div class="flexbox"> 1.53 + <div class="halfMainSize" style="margin-left: 80px; flex: none"></div> 1.54 + </div> 1.55 + 1.56 + <!-- Two flex items, exactly large enough to fit in line (no wrapping): --> 1.57 + <div class="flexbox"> 1.58 + <div class="halfMainSize"></div> 1.59 + <div class="halfMainSize"></div> 1.60 + </div> 1.61 + 1.62 + <!-- and now with some margin on first item, to force second item to wrap: --> 1.63 + <div class="flexbox"> 1.64 + <div class="halfMainSize" style="margin-right: 1px"></div> 1.65 + <div class="halfMainSize"></div> 1.66 + </div> 1.67 + 1.68 + <!-- and now with some margin on second item, again forcing it to wrap: --> 1.69 + <div class="flexbox"> 1.70 + <div class="halfMainSize"></div> 1.71 + <div class="halfMainSize" style="margin-right: 1px"></div> 1.72 + </div> 1.73 + 1.74 + <!-- Single large flex item: overflows (but does not wrap) and is shrunk 1.75 + to fit container's main-size --> 1.76 + <div class="flexbox"> 1.77 + <div class="hugeMainSize"></div> 1.78 + </div> 1.79 + 1.80 + <!-- Single large flex item: overflows (but does not wrap) --> 1.81 + <div class="flexbox"> 1.82 + <div class="hugeMainSize" style="flex: none"></div> 1.83 + </div> 1.84 + 1.85 + <!-- Small flex item, followed by large flex item (which wraps to 1.86 + its own line and then shrink to container's main-size) --> 1.87 + <div class="flexbox"> 1.88 + <div class="halfMainSize"></div> 1.89 + <div class="hugeMainSize"></div> 1.90 + </div> 1.91 + 1.92 + <!-- Small flex item, followed by large inflexible flex item (which wraps to 1.93 + its own line and then shrink to container's main-size) --> 1.94 + <div class="flexbox"> 1.95 + <div class="halfMainSize"></div> 1.96 + <div class="hugeMainSize" style="flex: none"></div> 1.97 + </div> 1.98 + 1.99 +</body> 1.100 +</html>