flexbox-column-multi-line-block.html (1205B)
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="both trimmed block margins should be reflected in computed style"> 7 <style> 8 flexbox { 9 display: flex; 10 flex-direction: column; 11 flex-wrap: wrap; 12 width: 100px; 13 height: 120px; 14 margin-trim: block; 15 } 16 item { 17 display: block; 18 background-color: green; 19 width: 50px; 20 height: 50px; 21 margin-block: 10px; 22 } 23 </style> 24 <script src="/resources/testharness.js"></script> 25 <script src="/resources/testharnessreport.js"></script> 26 <script src="/resources/check-layout-th.js"></script> 27 </head> 28 <body onload="checkLayout('flexbox > item')"> 29 <div id="target"> 30 <flexbox> 31 <item data-offset-y="8" data-expected-margin-top="0" data-expected-margin-bottom="10"></item> 32 <item data-offset-y="78" data-expected-margin-top="10" data-expected-margin-bottom="0" ></item> 33 <item data-offset-y="8" data-expected-margin-top="0" data-expected-margin-bottom="10"></item> 34 <item data-offset-y="78" data-expected-margin-top="10" data-expected-margin-bottom="0"></item> 35 </flexbox> 36 </div> 37 </body> 38 </html>