negative-flex-margins-crash.html (563B)
1 <!DOCTYPE html> 2 <title>CSS Flexbox: Crash caused by negative width in flex box</title> 3 <link rel="author" title="Christian Biesinger" href="mailto:cbiesinger@chromium.org"> 4 <link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#box-model"> 5 <link rel="issue" href="https://crbug.com/490423"> 6 <meta name="assert" content="Check that crash doesn't happen in flex box with negative margin."> 7 8 <style> 9 div { 10 display: flex; 11 } 12 13 .inner { 14 margin-left: -4em; 15 } 16 </style> 17 <div> 18 <div> 19 <div class="inner">PASS if we don't assert</div> 20 </div> 21 </div>