Status: FAIL | Duration: 34ms | 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-001.html
<!DOCTYPE html> <title>Test choosing the correct text-box-edge value for requested trim metric</title> <link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-edge"> <link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim"> <meta charset="utf-8"> <meta name="assert" content="text-box-edge is an inherited property and trim metric should be used accordingly." > <!-- https://github.com/w3c/csswg-drafts/issues/10904 --> <link rel="match" href="text-box-trim-accumulation-001-ref.html"> <link rel="stylesheet" href="/fonts/baseline-diagnostic/baseline-diagnostic-font.css"> <style> .spacer { block-size: 100px; background: lightgray; } .inner { font: 100px/2 BaselineDiagnosticAlphabeticZero; } .outer { text-box-trim: trim-start; text-box-edge: auto; } .middle { text-box-trim: trim-end; text-box-edge: text alphabetic; } .inner:first-child { text-box-edge: ex alphabetic; } .inner:last-child { text-box-edge: text; } </style> <div class="spacer"></div> <div class="outer"> <div class="middle"> <div class="inner">█BxIF</div> <div class="spacer"></div> <div class="inner">█BxIF</div> </div> </div> <div class="spacer"></div>
/css/css-inline/text-box-trim/text-box-trim-accumulation-001-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: 50px; } .target-second { margin-block-start: 50px; margin-block-end: 0px; } </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>