Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
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 Reftest Reference</title> |
michael@0 | 9 | <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> |
michael@0 | 10 | <meta charset="utf-8"> |
michael@0 | 11 | <style> |
michael@0 | 12 | div.flexbox { |
michael@0 | 13 | border: 1px dashed black; |
michael@0 | 14 | width: 100px; |
michael@0 | 15 | height: 12px; |
michael@0 | 16 | margin-bottom: 2px; |
michael@0 | 17 | } |
michael@0 | 18 | div.halfMainSize { |
michael@0 | 19 | width: 48px; |
michael@0 | 20 | border: 1px solid blue; |
michael@0 | 21 | background: lightblue; |
michael@0 | 22 | } |
michael@0 | 23 | div.hugeMainSize { |
michael@0 | 24 | width: 148px; |
michael@0 | 25 | border: 1px solid purple; |
michael@0 | 26 | background: fuchsia; |
michael@0 | 27 | } |
michael@0 | 28 | div.fullCrossSize { |
michael@0 | 29 | height: 10px; |
michael@0 | 30 | } |
michael@0 | 31 | div.halfCrossSize { |
michael@0 | 32 | height: 4px; |
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 fullCrossSize"></div> |
michael@0 | 41 | </div> |
michael@0 | 42 | |
michael@0 | 43 | <!-- Single small flex item with 'margin-left' 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 fullCrossSize" |
michael@0 | 47 | style="margin-left: 80px; width: 18px"></div> |
michael@0 | 48 | </div> |
michael@0 | 49 | |
michael@0 | 50 | <!-- Single small inflexible flex item with 'margin-left' set to push it to |
michael@0 | 51 | protrude from the far edge of the container --> |
michael@0 | 52 | <div class="flexbox"> |
michael@0 | 53 | <div class="halfMainSize fullCrossSize" |
michael@0 | 54 | style="margin-left: 80px"></div> |
michael@0 | 55 | </div> |
michael@0 | 56 | |
michael@0 | 57 | <!-- Two flex items, exactly large enough to fit in line (no wrapping): --> |
michael@0 | 58 | <div class="flexbox"> |
michael@0 | 59 | <div class="halfMainSize fullCrossSize" style="float: left"></div> |
michael@0 | 60 | <div class="halfMainSize fullCrossSize" style="float: left"></div> |
michael@0 | 61 | </div> |
michael@0 | 62 | |
michael@0 | 63 | <!-- and now with some margin on first item, to force second item to wrap: --> |
michael@0 | 64 | <div class="flexbox"> |
michael@0 | 65 | <div class="halfMainSize halfCrossSize"></div> |
michael@0 | 66 | <div class="halfMainSize halfCrossSize"></div> |
michael@0 | 67 | </div> |
michael@0 | 68 | |
michael@0 | 69 | <!-- and now with some margin on second item, again forcing it to wrap: --> |
michael@0 | 70 | <div class="flexbox"> |
michael@0 | 71 | <div class="halfMainSize halfCrossSize"></div> |
michael@0 | 72 | <div class="halfMainSize halfCrossSize"></div> |
michael@0 | 73 | </div> |
michael@0 | 74 | |
michael@0 | 75 | <!-- Single large flex item: overflows (but does not wrap) and is shrunk |
michael@0 | 76 | to fit container's main-size --> |
michael@0 | 77 | <div class="flexbox"> |
michael@0 | 78 | <div class="hugeMainSize fullCrossSize" style="width: 98px"></div> |
michael@0 | 79 | </div> |
michael@0 | 80 | |
michael@0 | 81 | <!-- Single large flex item: overflows (but does not wrap) --> |
michael@0 | 82 | <div class="flexbox"> |
michael@0 | 83 | <div class="hugeMainSize fullCrossSize"></div> |
michael@0 | 84 | </div> |
michael@0 | 85 | |
michael@0 | 86 | <!-- Small flex item, followed by large flex item (which wraps to |
michael@0 | 87 | its own line and then shrink to container's main-size) --> |
michael@0 | 88 | <div class="flexbox"> |
michael@0 | 89 | <div class="halfMainSize halfCrossSize"></div> |
michael@0 | 90 | <div class="hugeMainSize halfCrossSize" style="width: 98px"></div> |
michael@0 | 91 | </div> |
michael@0 | 92 | |
michael@0 | 93 | <!-- Small flex item, followed by large inflexible flex item (which wraps to |
michael@0 | 94 | its own line and then shrink to container's main-size) --> |
michael@0 | 95 | <div class="flexbox"> |
michael@0 | 96 | <div class="halfMainSize halfCrossSize"></div> |
michael@0 | 97 | <div class="hugeMainSize halfCrossSize"></div> |
michael@0 | 98 | </div> |
michael@0 | 99 | |
michael@0 | 100 | </body> |
michael@0 | 101 | </html> |