text-box-trim-line-clamp-auto-block-in-inline-001.html (955B)
1 <!DOCTYPE html> 2 <meta charset="UTF-8"> 3 <title>text-box-trim when used together with line-clamp: auto shouldn't crash with block-in-inlines</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="help" href="https://drafts.csswg.org/css-overflow-4/#line-clamp"> 7 <link rel="match" href="text-box-trim-line-clamp-auto-001-ref.html"> 8 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 9 <style> 10 .spacer { 11 background: lightgray; 12 block-size: 100px; 13 } 14 .target { 15 font: 50px/2 Ahem; 16 text-box-trim: trim-end; 17 text-box-edge: text; 18 line-clamp: auto; 19 max-height: 285px; 20 } 21 </style> 22 <div class="spacer"></div> 23 <div class="target"> 24 <span> 25 <div>A</div> 26 </span> 27 <span> 28 <div>B</div> 29 </span> 30 <span> 31 <div>C</div> 32 </span> 33 <span> 34 <div>D</div> 35 </span> 36 </div> 37 <div class="spacer"></div>