grid-abspos-staticpos-align-items-flex-end-large-border-padding.html (815B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <link rel="help" href="https://drafts.csswg.org/css-align-3/#align-abspos"> 5 <link rel="help" href="https://www.w3.org/TR/css-position-3/#staticpos-rect"> 6 <link rel="match" href="grid-abspos-staticpos-align-items-flex-end-large-border-padding-ref.html"> 7 <meta name="assert" content="Abspos child of grid is aligned to end of grid content box when statically positioned and align-items: flex-end in parent."> 8 <style> 9 .grid { 10 display: grid; 11 padding: 13px; 12 padding-bottom: 42px; 13 border: 23px solid black; 14 border-bottom-width: 45px; 15 width: 100px; 16 height: 100px; 17 align-items: flex-end; 18 } 19 .abspos { 20 position: absolute; 21 width: 50px; 22 height: 50px; 23 background-color: green; 24 } 25 </style> 26 </head> 27 <body> 28 <div class="grid"> 29 <div class="abspos"></div> 30 </div> 31 </body> 32 </html>