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-ruby-start-002.html
<!DOCTYPE html> <title>text-box-trim ignores ruby annotations combined with emphasis marks</title> <link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim"> <link rel="help" href="https://www.w3.org/TR/css-ruby/"> <link rel="match" href="text-box-trim-ruby-start-001-ref.html"> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> <style> .spacer { height: 40px; background: lightgray; } .target { font: 40px/1 Ahem; text-box-trim: trim-start; text-box-edge: text; text-emphasis: dot transparent; } rt { /* The Ruby annotation positioning is UA-dependent. In order to ref-test the trimming of parts above the ascent, hide the Ruby annotation. */ color: transparent; } </style> <div class="spacer"></div> <div class="target">A <ruby>BASE<rt>RUBY</rt></ruby> <ruby>BASE<rt>RUBY</rt></ruby> B</div> <div class="spacer"></div>
/css/css-inline/text-box-trim/text-box-trim-ruby-start-001-ref.html
<!DOCTYPE html> <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> <style> .spacer { height: 40px; background: lightgray; } .target { font-family: Ahem; font-size: 40px; line-height: 1; } </style> <div class="spacer"></div> <div class="target">A BASE BASE B</div> <div class="spacer"></div>