line-clamp-auto-034.html (883B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Overflow: `line-clamp: auto` clamp between IFCs</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-034-ref.html"> 7 <meta name="assert" content="With `line-clamp: auto`, there can be a clamp point between two IFCs. In that case, no line will have an ellipsis."> 8 <style> 9 .clamp { 10 line-clamp: auto; 11 max-height: 6lh; 12 font: 16px / 32px serif; 13 white-space: pre; 14 padding: 0 4px; 15 background-color: yellow; 16 } 17 .ifc { 18 display: flow-root; 19 background-color: orange; 20 } 21 .red { 22 display: flow-root; 23 background-color: red; 24 } 25 </style> 26 27 <div class="clamp">Line 1 28 Line 2 29 Line 3 30 Line 4 31 <div class="ifc">Line 5 32 Line 6</div><div class="ifc red">Line 7 33 Line 8</div>Line 9</div>