OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>CSS Grid Layout Test: Self-Baseline alignment may change grid area height
</title> |
| 4 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernande
z@igalia.com"> |
| 5 <link rel="help" href="https://drafts.csswg.org/css-align-3/#baseline-align-self
"> |
| 6 <link rel="help" href="https://drafts.csswg.org/css-align-3/#align-by-baseline"> |
| 7 <link rel="match" href="../../../reference/ref-filled-green-100px-square.xht"> |
| 8 <meta name="assert" content="Column-Axis Self-Baseline alignment may change grid
area height on auto-sized grid."> |
| 9 <style> |
| 10 .block, .grid { font: 10px/1 Ahem; } |
| 11 .big { font-size: 20px; } |
| 12 .block { |
| 13 position: absolute; |
| 14 z-index: -1; |
| 15 background: green; |
| 16 width: 100px; |
| 17 height: 100px; |
| 18 } |
| 19 .block > div { |
| 20 position: absolute; |
| 21 color: red; |
| 22 } |
| 23 .grid { |
| 24 display: inline-grid; |
| 25 color: green; |
| 26 grid-auto-columns: 50px; |
| 27 align-items: baseline; |
| 28 align-content: start; |
| 29 } |
| 30 .firstRowFirstColumn { |
| 31 grid-row: 1; |
| 32 grid-column: 1; |
| 33 } |
| 34 .firstRowSecondColumn { |
| 35 grid-row: 1; |
| 36 grid-column: 2; |
| 37 } |
| 38 .secondRowFirstColumn { |
| 39 grid-row: 2; |
| 40 grid-column: 1; |
| 41 } |
| 42 </style> |
| 43 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p
> |
| 44 <div class="block"> |
| 45 <div style="top: 8px; left: 0px;">XX<br>XXXX<br>XX<br>XX X</div> |
| 46 <div style="top: 0px; left: 50px; font-size: 20px">X</div> |
| 47 </div> |
| 48 <div class="grid"> |
| 49 <div class="firstRowFirstColumn">XX XXXX XX</div> |
| 50 <div class="firstRowSecondColumn big">X</div> |
| 51 <div class="secondRowFirstColumn">XX X</div> |
| 52 </div> |
OLD | NEW |