Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
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 | <!-- Reference case for behavior of the 'baseline' value for align-items and |
michael@0 | 7 | align-self, in a multi-line flex container. |
michael@0 | 8 | |
michael@0 | 9 | This reference case just consists of three single-line flex containers, |
michael@0 | 10 | to match the testcase's one flex container with three flex lines. |
michael@0 | 11 | --> |
michael@0 | 12 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 13 | <head> |
michael@0 | 14 | <title>CSS Reftest Reference</title> |
michael@0 | 15 | <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> |
michael@0 | 16 | <style> |
michael@0 | 17 | .flexbox { |
michael@0 | 18 | display: flex; |
michael@0 | 19 | align-items: baseline; |
michael@0 | 20 | width: 90px; |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | .flexbox > * { |
michael@0 | 24 | width: 28px; |
michael@0 | 25 | background: yellow; |
michael@0 | 26 | border: 1px solid black; |
michael@0 | 27 | } |
michael@0 | 28 | |
michael@0 | 29 | .big { font: 24px sans-serif; } |
michael@0 | 30 | .medium { font: 14px sans-serif; } |
michael@0 | 31 | .small { font: 8px sans-serif; } |
michael@0 | 32 | |
michael@0 | 33 | </style> |
michael@0 | 34 | </head> |
michael@0 | 35 | <body> |
michael@0 | 36 | <div class="flexbox"> |
michael@0 | 37 | <!-- First flex line: Just 3 different sizes of text --> |
michael@0 | 38 | <div class="big">a</div> |
michael@0 | 39 | <div class="small">b</div> |
michael@0 | 40 | <div class="medium">c</div> |
michael@0 | 41 | </div> |
michael@0 | 42 | <div class="flexbox"> |
michael@0 | 43 | <!-- Second flex line: different margin/padding amounts on each item, |
michael@0 | 44 | and one non-baseline-aligned item.--> |
michael@0 | 45 | <div class="medium" style="padding-top: 10px">d</div> |
michael@0 | 46 | <div class="medium" style="margin-bottom: 8px">e</div> |
michael@0 | 47 | <div class="medium" style="align-self: stretch">f</div> |
michael@0 | 48 | </div> |
michael@0 | 49 | <div class="flexbox"> |
michael@0 | 50 | <!-- Third flex line: other margin/padding amounts on each item --> |
michael@0 | 51 | <div class="small" style="margin-top: 20px">g</div> |
michael@0 | 52 | <div class="big">h</div> |
michael@0 | 53 | <div class="medium" style="padding-bottom: 6px">i</div> |
michael@0 | 54 | </div> |
michael@0 | 55 | </body> |
michael@0 | 56 | </html> |