flex-block-start-trimmed-only-ref.html (655B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>margin-trim: flex-block-start-trimmed-only</title> 5 <link rel="author" href="mailto:sammy.gill@apple.com"> 6 <link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex"> 7 <meta name="assert" content="block-start should trim only margin block start of flex items"> 8 <style> 9 flexbox { 10 display: flex; 11 width: min-content; 12 border: 1px black solid; 13 } 14 item { 15 display: block; 16 background-color: green; 17 width: 50px; 18 height: 50px; 19 margin-inline: 10px; 20 margin-block-end: 10px; 21 } 22 </style> 23 </head> 24 <body> 25 <flexbox> 26 <item></item> 27 <item></item> 28 <item></item> 29 </flexbox> 30 </body> 31 </html>