line-clamp-auto-018.tentative.html (770B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Overflow: `line-clamp: auto` with the clamp point in a descendant with bp</title> 4 <link rel="author" title="Andreu Botella" href="mailto:abotella@igalia.com"> 5 <link rel="help" href="https://drafts.csswg.org/css-overflow-4/#line-clamp"> 6 <link rel="match" href="reference/line-clamp-auto-018-ref.html"> 7 <meta name="assert" content="If line-clamp: auto has the clamp point in a descendant, it should take its border and padding into account"> 8 <style> 9 .clamp { 10 line-clamp: auto; 11 max-height: 5lh; 12 font: 16px / 32px serif; 13 white-space: pre; 14 background-color: yellow; 15 } 16 .clamp > div { 17 padding: 2px; 18 border: 2px solid black; 19 } 20 </style> 21 <div class="clamp"><div>Line 1 22 Line 2 23 Line 3 24 Line 4 25 Line 5 26 Line 6</div></div>