align-self-012.html (1103B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Flexbox Test: align-self - auto (initial value)</title> 4 <link rel="author" title="Intel" href="http://www.intel.com"> 5 <link rel="author" title="Shiyou Tan" href="mailto:shiyoux.tan@intel.com"> 6 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" title="8.3. Cross-axis Alignment: the 'align-items' and 'align-self' properties"> 7 <link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#align-items-property" /> 8 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 9 <meta name="assert" content="The initial value of 'align-self' property is 'auto'"> 10 <style> 11 #test { 12 align-items: stretch; 13 background-color: red; 14 display: flex; 15 height: 100px; 16 width: 100px; 17 } 18 #test div { 19 background-color: green; 20 width: 25px; 21 } 22 .auto { 23 align-self: auto; 24 } 25 </style> 26 <body> 27 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 28 <div id="test"> 29 <div class="auto"></div> 30 <div class="auto"></div> 31 <div></div> 32 <div></div> 33 </div> 34 </body>