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