display-contents-line-height.html (516B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Display: display:contents font-size should affect line-height</title> 4 <link rel="author" title="Rune Lillesveen" href="mailto:futhark@chromium.org"> 5 <link rel="help" href="https://drafts.csswg.org/css-display-3/#valdef-display-contents"> 6 <link rel="match" href="display-contents-line-height-ref.html"> 7 <style> 8 span { 9 display: contents; 10 font-size: 40px; 11 } 12 </style> 13 <p>The two lines below should not overlap.</p> 14 <span>Line 1</span><br><span>Line 2</span>