text-box-trim-line-clamp-auto-001.html (747B)
1 <!DOCTYPE html> 2 <meta charset="UTF-8"> 3 <title>text-box-trim applies to the last line before clamp when clamping by a height</title> 4 <link rel="help" href="https://drafts.csswg.org/css-inline-3/#propdef-text-box-edge"> 5 <link rel="help" href="https://drafts.csswg.org/css-inline-3/#propdef-text-box-trim"> 6 <link rel="match" href="text-box-trim-line-clamp-auto-001-ref.html"> 7 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 8 <style> 9 .spacer { 10 background: lightgray; 11 block-size: 100px; 12 } 13 .target { 14 font: 50px/2 Ahem; 15 text-box-trim: trim-end; 16 text-box-edge: text; 17 18 line-clamp: auto; 19 max-height: 285px; 20 } 21 </style> 22 <div class="spacer"></div> 23 <div class="target"> 24 A<br> 25 B<br> 26 C<br> 27 D</div> 28 <div class="spacer"></div>