Thu, 15 Jan 2015 21:13:52 +0100
Remove forgotten relic of ABI crash risk averse overloaded method change.
michael@0 | 1 | <!DOCTYPE html> |
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 | <html> |
michael@0 | 7 | <head> |
michael@0 | 8 | <title>CSS Test: Testing flex-wrap in vertical flex containers</title> |
michael@0 | 9 | <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> |
michael@0 | 10 | <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-wrap-property"> |
michael@0 | 11 | <link rel="match" href="flexbox-flex-wrap-vert-1-ref.html"> |
michael@0 | 12 | <meta charset="utf-8"> |
michael@0 | 13 | <style> |
michael@0 | 14 | div.flexbox { |
michael@0 | 15 | display: flex; |
michael@0 | 16 | flex-direction: column; |
michael@0 | 17 | flex-wrap: wrap; |
michael@0 | 18 | border: 1px dashed black; |
michael@0 | 19 | width: 12px; |
michael@0 | 20 | height: 100px; |
michael@0 | 21 | margin-right: 2px; |
michael@0 | 22 | float: left; |
michael@0 | 23 | } |
michael@0 | 24 | div.halfMainSize { |
michael@0 | 25 | height: 48px; |
michael@0 | 26 | border: 1px solid blue; |
michael@0 | 27 | background: lightblue; |
michael@0 | 28 | } |
michael@0 | 29 | div.hugeMainSize { |
michael@0 | 30 | height: 148px; |
michael@0 | 31 | border: 1px solid purple; |
michael@0 | 32 | background: fuchsia; |
michael@0 | 33 | } |
michael@0 | 34 | </style> |
michael@0 | 35 | </head> |
michael@0 | 36 | <body> |
michael@0 | 37 | |
michael@0 | 38 | <!-- Single small flex item --> |
michael@0 | 39 | <div class="flexbox"> |
michael@0 | 40 | <div class="halfMainSize"></div> |
michael@0 | 41 | </div> |
michael@0 | 42 | |
michael@0 | 43 | <!-- Single small flex item with 'margin-top' set to push it to protrude |
michael@0 | 44 | from the far edge of the container (and to shrink as a result) --> |
michael@0 | 45 | <div class="flexbox"> |
michael@0 | 46 | <div class="halfMainSize" style="margin-top: 80px"></div> |
michael@0 | 47 | </div> |
michael@0 | 48 | |
michael@0 | 49 | <!-- Single small inflexible flex item with 'margin-top' set to push it to |
michael@0 | 50 | protrude from the far edge of the container --> |
michael@0 | 51 | <div class="flexbox"> |
michael@0 | 52 | <div class="halfMainSize" style="margin-top: 80px; flex: none"></div> |
michael@0 | 53 | </div> |
michael@0 | 54 | |
michael@0 | 55 | <!-- Two flex items, exactly large enough to fit in line (no wrapping): --> |
michael@0 | 56 | <div class="flexbox"> |
michael@0 | 57 | <div class="halfMainSize"></div> |
michael@0 | 58 | <div class="halfMainSize"></div> |
michael@0 | 59 | </div> |
michael@0 | 60 | |
michael@0 | 61 | <!-- and now with some margin on first item, to force second item to wrap: --> |
michael@0 | 62 | <div class="flexbox"> |
michael@0 | 63 | <div class="halfMainSize" style="margin-bottom: 1px"></div> |
michael@0 | 64 | <div class="halfMainSize"></div> |
michael@0 | 65 | </div> |
michael@0 | 66 | |
michael@0 | 67 | <!-- and now with some margin on second item, again forcing it to wrap: --> |
michael@0 | 68 | <div class="flexbox"> |
michael@0 | 69 | <div class="halfMainSize"></div> |
michael@0 | 70 | <div class="halfMainSize" style="margin-bottom: 1px"></div> |
michael@0 | 71 | </div> |
michael@0 | 72 | |
michael@0 | 73 | <!-- Single large flex item: overflows (but does not wrap) and is shrunk |
michael@0 | 74 | to fit container's main-size --> |
michael@0 | 75 | <div class="flexbox"> |
michael@0 | 76 | <div class="hugeMainSize"></div> |
michael@0 | 77 | </div> |
michael@0 | 78 | |
michael@0 | 79 | <!-- Single large flex item: overflows (but does not wrap) --> |
michael@0 | 80 | <div class="flexbox"> |
michael@0 | 81 | <div class="hugeMainSize" style="flex: none"></div> |
michael@0 | 82 | </div> |
michael@0 | 83 | |
michael@0 | 84 | <!-- Small flex item, followed by large flex item (which wraps to |
michael@0 | 85 | its own line and then shrink to container's main-size) --> |
michael@0 | 86 | <div class="flexbox"> |
michael@0 | 87 | <div class="halfMainSize"></div> |
michael@0 | 88 | <div class="hugeMainSize"></div> |
michael@0 | 89 | </div> |
michael@0 | 90 | |
michael@0 | 91 | <!-- Small flex item, followed by large inflexible flex item (which wraps to |
michael@0 | 92 | its own line and then shrink to container's main-size) --> |
michael@0 | 93 | <div class="flexbox"> |
michael@0 | 94 | <div class="halfMainSize"></div> |
michael@0 | 95 | <div class="hugeMainSize" style="flex: none"></div> |
michael@0 | 96 | </div> |
michael@0 | 97 | |
michael@0 | 98 | </body> |
michael@0 | 99 | </html> |