self-align-normal-flex.html (681B)
1 <!DOCTYPE html> 2 <title>align-self:normal on flex items</title> 3 <link rel="author" title="Oriol Brufau" href="obrufau@igalia.com"> 4 <link rel="help" href="https://drafts.csswg.org/css-align/#align-flex"> 5 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 6 <meta name="assert" content="align-self:normal behaves as stretch on flex items." /> 7 <style> 8 .flex { 9 display: flex; 10 align-items: center; 11 width: 100px; 12 height: 100px; 13 background: red; 14 } 15 .item { 16 flex: 1; 17 align-self: normal; 18 background: green; 19 } 20 </style> 21 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 22 <div class="flex"> 23 <div class="item"></div> 24 </div>