Status: FAIL | Duration: 20ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-inline/text-box-trim/text-box-trim-inline-box-003.html
<!DOCTYPE html> <title>Test of text-box-trim on fragmented inline boxes</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"> <link rel="match" href="text-box-trim-inline-box-003-ref.html"> <meta charset="utf-8"> <link rel="stylesheet" href="/fonts/baseline-diagnostic/baseline-diagnostic-font.css"> <style> .spacer { block-size: 100px; background: lightgray; } .container { font: 100px/1 BaselineDiagnosticAlphabeticZero; width: 5em; } .target { background: green; text-box: trim-both cap alphabetic; } </style> <div class="spacer"></div> <div class="container"> <span class="target">█BxIF █BxIF █BxIF</span> </div> <div class="spacer"></div>
/css/css-inline/text-box-trim/text-box-trim-inline-box-003-ref.html
<!DOCTYPE html> <title>Test of text-box-trim on fragmented inline boxes</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"> <link rel="stylesheet" href="/fonts/baseline-diagnostic/baseline-diagnostic-font.css"> <style> .spacer { block-size: 100px; background: lightgray; } .container { font: 100px/1 BaselineDiagnosticAlphabeticZero; } .target { position: relative; } .target::before { content: ''; position: absolute; top: calc(var(--baseline-diagnostic-alphabetic-zero-cap-height) * 1em); right: 0; bottom: calc((1 - var(--baseline-diagnostic-alphabetic-zero-alphabetic)) * 1em); left: 0; z-index: -1; background: green; } </style> <div class="spacer"></div> <div class="container"> <span class="target">█BxIF</span> <br> <span class="target">█BxIF</span> <br> <span class="target">█BxIF</span> </div> <div class="spacer"></div>