ruby-002.html (1551B)
1 <!DOCTYPE html> 2 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 3 <link rel="help" href="https://www.w3.org/TR/css-break-3/#breaking-rules"> 4 <link rel="help" href="https://www.w3.org/TR/css-ruby-1/"> 5 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 6 <style> 7 ruby.under { 8 ruby-position: under; 9 } 10 ruby div { 11 display: inline-block; 12 vertical-align: top; 13 width: 25px; 14 background: green; 15 } 16 .main { 17 height: 50px; 18 } 19 .annotation { 20 height: 25px; 21 } 22 .filler { 23 position: absolute; 24 width: 25px; 25 height: 25px; 26 background: green; 27 } 28 </style> 29 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 30 <div style="position:relative; width:100px; height:100px; background:red;"> 31 <div style="columns:2; column-fill:auto; column-gap:0; height:175px; orphans:1; widows:1;"> 32 <ruby> 33 <div class="main"></div><rt><div class="annotation"></div></rt></ruby 34 ><ruby class="under"><div class="main"></div><rt><div class="annotation"></div></rt> 35 </ruby> 36 <br> 37 <ruby> 38 <div class="main"></div><rt><div class="annotation"></div></rt></ruby 39 ><ruby class="under"><div class="main"></div><rt><div class="annotation"></div></rt> 40 </ruby> 41 <br> 42 </div> 43 <div class="filler" style="left:0; top:75px;"></div> 44 <div class="filler" style="left:25px; top:0;"></div> 45 <div class="filler" style="left:50px; top:75px;"></div> 46 <div class="filler" style="left:75px; top:0;"></div> 47 </div>