| Geoffrey Sneddon | f106b6f | 2015-12-07 15:16:26 | [diff] [blame] | 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 multi-line flex container with the 'align-content' property set to 'flex-start'</title> |
| 5 | <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> |
| 6 | <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#align-content-property" /> |
| 7 | <link rel="match" href="reference/align-content-001-ref.html" /> |
| 8 | <meta name="flags" content=""> |
| 9 | <meta name="assert" content="This test checks that a multi-line flex container with 'align-content: flex-start' packs lines toward the start of the flex container." /> |
| 10 | <style type="text/css"> |
| 11 | #flexbox |
| 12 | { |
| 13 | background: linear-gradient(to bottom, red 0, red 50px, green 50px, green 100px); |
| 14 | align-content: flex-start; |
| 15 | display: flex; |
| 16 | flex-flow: wrap; |
| 17 | height: 100px; |
| 18 | width: 300px; |
| 19 | } |
| 20 | div div |
| 21 | { |
| 22 | background-color: green; |
| 23 | height: 26px; |
| 24 | width: 150px; |
| 25 | } |
| 26 | </style> |
| 27 | </head> |
| 28 | <body> |
| 29 | <p>Test passes if there is no red visible on the page.</p> |
| 30 | <div id="flexbox"> |
| 31 | <div></div> |
| 32 | <div></div> |
| 33 | <div></div> |
| 34 | <div></div> |
| 35 | </div> |
| 36 | </body> |
| 37 | </html> |