Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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 | <!-- Testcase for behavior of the 'baseline' value for align-items (and |
michael@0 | 7 | align-self, implicitly), in a multi-line flex container. |
michael@0 | 8 | This test baseline-aligns variously-sized flex items, and the container's |
michael@0 | 9 | vertical size depends on the aggregate post-alignment height of its items. |
michael@0 | 10 | --> |
michael@0 | 11 | <html xmlns="http://www.w3.org/1999/xhtml"> |
michael@0 | 12 | <head> |
michael@0 | 13 | <title>CSS Test: Baseline alignment of block flex items with 'baseline' value for 'align-items' / 'align-self' in a multi-line flex container</title> |
michael@0 | 14 | <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> |
michael@0 | 15 | <link rel="help" href="http://www.w3.org/TR/css3-flexbox/#baseline-participation"/> |
michael@0 | 16 | <link rel="match" href="flexbox-align-self-baseline-horiz-4-ref.xhtml"/> |
michael@0 | 17 | <style> |
michael@0 | 18 | .flexbox { |
michael@0 | 19 | display: flex; |
michael@0 | 20 | flex-wrap: wrap; |
michael@0 | 21 | align-items: baseline; |
michael@0 | 22 | width: 90px; |
michael@0 | 23 | } |
michael@0 | 24 | |
michael@0 | 25 | .flexbox > * { |
michael@0 | 26 | width: 28px; /* 3 items per Flex Line */ |
michael@0 | 27 | background: yellow; |
michael@0 | 28 | border: 1px solid black; |
michael@0 | 29 | } |
michael@0 | 30 | |
michael@0 | 31 | .big { font: 24px sans-serif; } |
michael@0 | 32 | .medium { font: 14px sans-serif; } |
michael@0 | 33 | .small { font: 8px sans-serif; } |
michael@0 | 34 | |
michael@0 | 35 | </style> |
michael@0 | 36 | </head> |
michael@0 | 37 | <body> |
michael@0 | 38 | <div class="flexbox"> |
michael@0 | 39 | <!-- First flex line: Just 3 different sizes of text --> |
michael@0 | 40 | <div class="big">a</div> |
michael@0 | 41 | <div class="small">b</div> |
michael@0 | 42 | <div class="medium">c</div> |
michael@0 | 43 | |
michael@0 | 44 | <!-- Second flex line: different margin/padding amounts on each item, |
michael@0 | 45 | and one non-baseline-aligned item.--> |
michael@0 | 46 | <div class="medium" style="padding-top: 10px">d</div> |
michael@0 | 47 | <div class="medium" style="margin-bottom: 8px">e</div> |
michael@0 | 48 | <div class="medium" style="align-self: stretch">f</div> |
michael@0 | 49 | |
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> |