OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD//XHTML 1.0 Strict//EN" "http://www.w3.org/TR/
xhtml1/DTD/xhtml1-strict.dtd"> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> |
| 4 <title>CSS Test: A flex container with 'column' direction and 'align-ite
ms' property set to 'flex-start'</title> |
| 5 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:j
fernandez@igalia.com"> |
| 6 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#align-items-p
roperty" /> |
| 7 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#flex-directio
n-property" /> |
| 8 <link rel="match" href="reference/align-content-001-ref.html" /> |
| 9 <meta name="assert" content="This test checks that 'align-items: flex-st
art' implies the flex item's 'auto' width to be resolved as 'fit-content'." /> |
| 10 <style type="text/css"> |
| 11 .block { |
| 12 position: absolute; |
| 13 width: 300px; |
| 14 height: 100px; |
| 15 } |
| 16 #flexbox |
| 17 { |
| 18 font: 50px/1 Ahem; |
| 19 background: green; |
| 20 flex-direction: column; |
| 21 align-items: flex-start; |
| 22 display: flex; |
| 23 width: 300px; |
| 24 height: 100px; |
| 25 } |
| 26 </style> |
| 27 </head> |
| 28 <body> |
| 29 <p>Test passes if there is no red visible on the page.</p> |
| 30 <div class="block"> |
| 31 <div style="width: 200px; height: 50px; background: green"></div> |
| 32 </div> |
| 33 <div id="flexbox"> |
| 34 <div style="background: red; color: red">XXXX</div> |
| 35 </div> |
| 36 </body> |
| 37 </html> |
OLD | NEW |