text-box-trim-accumulation-004.html (1049B)
1 <!DOCTYPE html> 2 <title>Test trimming both sides of the inline content</title> 3 <link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim"> 4 <link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-edge"> 5 <meta name="assert" 6 content="text-box-trim values set by multiple ancestors accumulate instead 7 of overwrite each other. Note that the first inner box is not the last 8 formatted line for trim-end." 9 > 10 <link rel="match" href="text-box-trim-accumulation-004-ref.html"> 11 <style> 12 @import "support/MetricsTestFont.css"; 13 14 .spacer { 15 block-size: 100px; 16 background: lightgray; 17 } 18 19 .outer { 20 text-box-trim: trim-end; 21 text-box-edge: ex alphabetic; 22 } 23 24 .middle { 25 text-box-trim: trim-start; 26 text-box-edge: ex alphabetic; 27 } 28 29 .inner { 30 font: 100px/1 MetricsTestFont; 31 } 32 </style> 33 <div class="spacer"></div> 34 <div class="outer"> 35 <div class="middle"> 36 <div class="inner">ApÉx</div> 37 </div> 38 <div class="spacer"></div> 39 <div class="inner">ApÉx</div> 40 </div> 41 <div class="spacer"></div>