Status: FAIL | Duration: 30ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-inline/text-box-trim/text-box-trim-accumulation-004.html
<!DOCTYPE html> <title>Test trimming both sides of the inline content</title> <link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim"> <link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-edge"> <meta name="assert" content="text-box-trim values set by multiple ancestors accumulate instead of overwrite each other. Note that the first inner box is not the last formatted line for trim-end." > <link rel="match" href="text-box-trim-accumulation-004-ref.html"> <link rel="stylesheet" href="/fonts/baseline-diagnostic/baseline-diagnostic-font.css"> <meta charset="utf-8"> <style> .spacer { block-size: 100px; background: lightgray; } .outer { text-box-trim: trim-end; text-box-edge: ex alphabetic; } .middle { text-box-trim: trim-start; text-box-edge: ex alphabetic; } .inner { font: 100px/1 BaselineDiagnosticAlphabeticZero; } </style> <div class="spacer"></div> <div class="outer"> <div class="middle"> <div class="inner">█BxIF</div> </div> <div class="spacer"></div> <div class="inner">█BxIF</div> </div> <div class="spacer"></div>
/css/css-inline/text-box-trim/text-box-trim-accumulation-004-ref.html
<!DOCTYPE html> <link rel="stylesheet" href="/fonts/baseline-diagnostic/baseline-diagnostic-font.css"> <meta charset="utf-8"> <style> body { font: 100px/1 BaselineDiagnosticAlphabeticZero; } .spacer { background: lightgray; block-size: 100px; } .target-first { margin-block-start: calc(-1em * var(--baseline-diagnostic-alphabetic-zero-x-height)); margin-block-end: 0px; } .target-second { margin-block-start: 0px; margin-block-end: calc(-1em * (1 - var(--baseline-diagnostic-alphabetic-zero-alphabetic))); } </style> <div class="spacer"></div> <div class="target-first">█BxIF</div> <div class="spacer"></div> <div class="target-second">█BxIF</div> <div class="spacer"></div>