OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 3 <title>CSS Grid Layout Test: Grid Item Sizing</title> |
| 4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com"> |
| 5 <link rel="help" href="https://www.w3.org/TR/css-grid-1/#grid-item-sizing"> |
| 6 <link rel="match" href="grid-items-sizing-alignment-001-ref.html" /> |
| 7 <meta name="assert" content="Checks how alignment properties affect the size of
the non-replaced vs replaced grid items."> |
| 8 <style> |
| 9 #grid { |
| 10 display: grid; |
| 11 grid-auto-rows: 200px; |
| 12 grid-template-columns: repeat(3, 200px); |
| 13 } |
| 14 </style> |
| 15 |
| 16 <p>Test passes if it has the same output than the reference.</p> |
| 17 |
| 18 <div id="grid"> |
| 19 <button style="align-self: normal; justify-self: normal;">Stretched button (20
0x200)</button> |
| 20 <button style="align-self: stretch; justify-self: stretch;">Stretched button (
200x200)</button> |
| 21 <button style="align-self: start; justify-self: start;">Regular button</button
> |
| 22 <img src="support/50x50-green.png" alt="Image download support must be enabled
" |
| 23 style="align-self: normal; justify-self: normal;" /> |
| 24 <img src="support/50x50-green.png" alt="Image download support must be enabled
" |
| 25 style="align-self: stretch; justify-self: stretch;" /> |
| 26 <img src="support/50x50-green.png" alt="Image download support must be enabled
" |
| 27 style="align-self: start; justify-self: start;" /> |
| 28 </div> |
OLD | NEW |