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