flexbox-column-block-end.html (921B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <link rel="author" href="mailto:sammy.gill@apple.com"> 5 <link rel="help" href="https://drafts.csswg.org/css-box-4/#margin-trim-flex"> 6 <meta name="assert" content="block-end trimmed margins should be reflected in computed style"> 7 <style> 8 flexbox { 9 display: flex; 10 flex-direction: column; 11 width: min-content; 12 margin-trim: block-end; 13 } 14 item { 15 display: block; 16 background-color: green; 17 width: 50px; 18 height: 50px; 19 margin-block-end: 10px; 20 } 21 </style> 22 <script src="/resources/testharness.js"></script> 23 <script src="/resources/testharnessreport.js"></script> 24 <script src="/resources/check-layout-th.js"></script> 25 </head> 26 <body onload="checkLayout('flexbox > item')"> 27 <div id="target"> 28 <flexbox> 29 <item data-expected-margin-bottom="10" data-offset-y="8"></item> 30 <item data-expected-margin-bottom="0" data-offset-y="68"></item> 31 </flexbox> 32 </div> 33 </body> 34 </html>