text-box-trim-ruby-start-002.html (878B)
1 <!DOCTYPE html> 2 <title>text-box-trim ignores ruby annotations combined with emphasis marks</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 text-box-trim: trim-start; 15 text-box-edge: text; 16 text-emphasis: dot transparent; 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>RUBY</rt></ruby> 26 <ruby>BASE<rt>RUBY</rt></ruby> B</div> 27 <div class="spacer"></div>