OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>CSS Grid Layout Test: Self-Baseline alignment may change grid area width<
/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="Row-Axis Self-Baseline alignment may change grid ar
ea width on fixed-sized grid and content-distribution."> |
| 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: grid; |
| 25 width: 100px; |
| 26 height: 100px; |
| 27 color: green; |
| 28 grid-auto-rows: 50px; |
| 29 justify-items: baseline; |
| 30 justify-content: space-evenly; |
| 31 } |
| 32 .grid > div { writing-mode: vertical-lr; } |
| 33 .firstRowFirstColumn { |
| 34 grid-row: 1; |
| 35 grid-column: 1; |
| 36 } |
| 37 .secondRowFirstColumn { |
| 38 grid-row: 2; |
| 39 grid-column: 1; |
| 40 } |
| 41 .firstRowSecondColumn { |
| 42 grid-row: 1; |
| 43 grid-column: 2; |
| 44 } |
| 45 </style> |
| 46 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p
> |
| 47 <div class="block"> |
| 48 <div style="top: 0px; left: 23px;">XXX<br>XXX</div> |
| 49 <div style="top: 0px; left: 72px;">X</div> |
| 50 <div style="top: 10px; left: 72px;">X</div> |
| 51 <div style="top: 20px; left: 33px;">X</div> |
| 52 <div style="top: 30px; left: 33px;">X</div> |
| 53 <div style="top: 30px; left: 72px;">X</div> |
| 54 <div style="top: 50px; left: 18px" class="big">X</div> |
| 55 </div> |
| 56 <div class="grid"> |
| 57 <div class="firstRowFirstColumn">XX XXXX XX</div> |
| 58 <div class="secondRowFirstColumn big">X</div> |
| 59 <div class="firstRowSecondColumn">XX X</div> |
| 60 </div> |
OLD | NEW |