Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-inline/text-box-trim/text-box-trim-ruby-end-001.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>text-box-trim ignores ruby annotations under</title>
<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;
ruby-position: under;
text-box-trim: trim-end;
text-box-edge: text;
}
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 style="ruby-position: over">RUBY</rt></ruby> <ruby>BASE<rt style="ruby-position: under">RUBY</rt></ruby> B</div>
<div class="spacer"></div>