text-box-trim-ruby-end-001.html (898B)
1 <!DOCTYPE html> 2 <title>text-box-trim ignores ruby annotations under</title> 3 <link rel="help" href="https://drafts.csswg.org/css-inline-3/#text-box-trim"> 4 <link rel="help" href="https://www.w3.org/TR/css-ruby/"> 5 <link rel="match" href="text-box-trim-ruby-start-001-ref.html"> 6 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 7 <style> 8 .spacer { 9 height: 40px; 10 background: lightgray; 11 } 12 .target { 13 font: 40px/1 Ahem; 14 ruby-position: under; 15 text-box-trim: trim-end; 16 text-box-edge: text; 17 } 18 rt { 19 /* The Ruby annotation positioning is UA-dependent. In order to ref-test the 20 trimming of parts above the ascent, hide the Ruby annotation. */ 21 color: transparent; 22 } 23 </style> 24 <div class="spacer"></div> 25 <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> 26 <div class="spacer"></div>