Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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 that a collapsed flex item participates in baseline alignment only for the purpose of establishing container's cross size</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/#algo-visibility"> |
michael@0 | 11 | <link rel="match" href="flexbox-collapsed-item-baseline-1-ref.html"> |
michael@0 | 12 | <meta charset="utf-8"> |
michael@0 | 13 | <style> |
michael@0 | 14 | .flexContainer { |
michael@0 | 15 | display: flex; |
michael@0 | 16 | width: 50px; |
michael@0 | 17 | background: yellow; |
michael@0 | 18 | border: 1px dotted black; |
michael@0 | 19 | margin: 5px; |
michael@0 | 20 | align-items: baseline; |
michael@0 | 21 | } |
michael@0 | 22 | .collapse { |
michael@0 | 23 | visibility: collapse; |
michael@0 | 24 | } |
michael@0 | 25 | .largeFont { |
michael@0 | 26 | font-size: 20px; |
michael@0 | 27 | background: lightblue; |
michael@0 | 28 | /* Our flex items get padding on opposite sides (top/bottom) so that they |
michael@0 | 29 | produce a large combined height when baseline-aligned: */ |
michael@0 | 30 | padding-top: 5px; |
michael@0 | 31 | } |
michael@0 | 32 | .smallFont { |
michael@0 | 33 | font-size: 10px; |
michael@0 | 34 | background: pink; |
michael@0 | 35 | /* Our flex items get padding on opposite sides (top/bottom) so that they |
michael@0 | 36 | produce a large combined height when baseline-aligned: */ |
michael@0 | 37 | padding-bottom: 20px; |
michael@0 | 38 | } |
michael@0 | 39 | </style> |
michael@0 | 40 | </head> |
michael@0 | 41 | <body> |
michael@0 | 42 | <!-- Second item collapsed: --> |
michael@0 | 43 | <div class="flexContainer"> |
michael@0 | 44 | <div class="largeFont">a</div> |
michael@0 | 45 | <div class="smallFont collapse">b</div> |
michael@0 | 46 | </div> |
michael@0 | 47 | |
michael@0 | 48 | <!-- First item collapsed: --> |
michael@0 | 49 | <div class="flexContainer"> |
michael@0 | 50 | <div class="largeFont collapse">a</div> |
michael@0 | 51 | <div class="smallFont">b</div> |
michael@0 | 52 | </div> |
michael@0 | 53 | </body> |
michael@0 | 54 | </html> |