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 | <!-- Testcase for how we compute the baseline of a horizontal flex container |
michael@0 | 7 | with several flex items, some of which have "align-self:baseline". The |
michael@0 | 8 | spec says this about this case: |
michael@0 | 9 | If any of the flex items on the flex container's first line |
michael@0 | 10 | participate in baseline alignment, the flex container's |
michael@0 | 11 | main-axis baseline is the baseline of those flex items. |
michael@0 | 12 | --> |
michael@0 | 13 | <html> |
michael@0 | 14 | <head> |
michael@0 | 15 | <title>CSS Test: Testing the baseline of a horizontal flex container with baseline-aligned flex items</title> |
michael@0 | 16 | <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"> |
michael@0 | 17 | <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#flex-baselines"> |
michael@0 | 18 | <link rel="match" href="flexbox-baseline-align-self-baseline-horiz-1-ref.html"> |
michael@0 | 19 | <meta charset="utf-8"> |
michael@0 | 20 | <style> |
michael@0 | 21 | body { |
michael@0 | 22 | margin: 0; |
michael@0 | 23 | font-size: 20px; |
michael@0 | 24 | line-height: 20px; |
michael@0 | 25 | } |
michael@0 | 26 | .flexContainer { |
michael@0 | 27 | display: inline-flex; |
michael@0 | 28 | background: lightblue; |
michael@0 | 29 | align-items: baseline; |
michael@0 | 30 | } |
michael@0 | 31 | .hugeAndUnaligned { |
michael@0 | 32 | font-size: 35px; |
michael@0 | 33 | line-height: 35px; |
michael@0 | 34 | /* This one flex item won't be baseline-aligned, so it won't impact |
michael@0 | 35 | the flex container's positioning */ |
michael@0 | 36 | align-self: stretch; |
michael@0 | 37 | } |
michael@0 | 38 | .smallFont { |
michael@0 | 39 | font-size: 10px; |
michael@0 | 40 | line-height: 10px; |
michael@0 | 41 | } |
michael@0 | 42 | </style> |
michael@0 | 43 | </head> |
michael@0 | 44 | <body> |
michael@0 | 45 | a |
michael@0 | 46 | <div class="flexContainer"> |
michael@0 | 47 | <div class="smallFont">b</div> |
michael@0 | 48 | <div>c</div> |
michael@0 | 49 | <div class="hugeAndUnaligned">d</div> |
michael@0 | 50 | </div> |
michael@0 | 51 | <div class="flexContainer"> |
michael@0 | 52 | <div class="hugeAndUnaligned">e</div> |
michael@0 | 53 | <div>f</div> |
michael@0 | 54 | <div class="smallFont">g</div> |
michael@0 | 55 | </div> |
michael@0 | 56 | <div class="flexContainer"> |
michael@0 | 57 | <div class="hugeAndUnaligned">h</div> |
michael@0 | 58 | <div class="smallFont">i</div> |
michael@0 | 59 | <div>j</div> |
michael@0 | 60 | </div> |
michael@0 | 61 | </body> |
michael@0 | 62 | </html> |