Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-inline/text-box-trim/text-box-trim-initial-letter-end-001.html
<!DOCTYPE html> <title>text-box-trim: trim-end works even in the presence of initial-letter</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"> <link rel="match" href="text-box-trim-initial-letter-end-001-ref.html"> <link rel="stylesheet" href="/fonts/baseline-diagnostic/baseline-diagnostic-font.css"> <meta charset="utf-8"> <style> .spacer { height: 50px; background: lightgray; position: relative; } .target { font: 40px/1 BaselineDiagnosticAlphabeticZero; text-box-trim: trim-end; text-box-edge: text alphabetic; } .target::first-letter { initial-letter: 3; } </style> <div class="spacer"></div> <div class="target">█BxIF</div> <div class="spacer"></div>
/css/css-inline/text-box-trim/text-box-trim-initial-letter-end-001-ref.html
<!DOCTYPE html> <link rel="stylesheet" href="/fonts/baseline-diagnostic/baseline-diagnostic-font.css"> <meta charset="utf-8"> <style> .spacer { height: 50px; background: lightgray; position: relative; } .target { font: 40px/1 BaselineDiagnosticAlphabeticZero; } .target::first-letter { initial-letter: 3; } .offset { top: -8px; } </style> <div class="spacer"></div> <div class="target">█BxIF</div> <div class="spacer offset"></div>