tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

block-ruby-002.html (1731B)


      1 <!DOCTYPE html>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5  -->
      6 <html lang="ja">
      7 <meta charset="utf-8">
      8 <title>CSS Ruby Test: blockification/inlinification of 'display:ruby/block ruby'.</title>
      9 <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
     10 <link rel="help" href="https://drafts.csswg.org/css-display/#propdef-display">
     11 <link rel="help" href="https://drafts.csswg.org/css-ruby-1/#box-fixup">
     12 <link rel="help" href="https://drafts.csswg.org/css-display-3/#inlinify">
     13 <link rel="match" href="block-ruby-002-ref.html">
     14 <style>
     15 ruby { display: ruby; background: lightblue; }
     16 rbb { display: block ruby; background: lightblue; }
     17 grid { display: grid; }
     18 .mbp {
     19  margin: 1px 3px 5px 7px;
     20  padding: 3px 5px 7px 1px;
     21  border-width: 3px 1px 7px 5px;
     22  border-style: solid;
     23 }
     24 rbc {
     25  display: ruby-base-container;
     26  unicode-bidi: isolate;
     27 }
     28 rtc {
     29  display: ruby-text-container;
     30  unicode-bidi: isolate;
     31 }
     32 </style>
     33 <grid>A<ruby><rt></rt></ruby>B</grid>
     34 <grid>A<ruby class=mbp><rt></rt></ruby>B</grid>
     35 <grid>A
     36    <ruby><rt></rt></ruby>
     37    <ruby><rbc></rbc><rbc></rbc><rbc></rbc><rbc></rbc><rbc></rbc><rbc></rbc><rbc></rbc><rbc></rbc></ruby>
     38 B
     39 </grid>
     40 <ruby><rt><rbb></rbb></rt></ruby>
     41 <ruby><rbc><rbb></rbb></rbc></ruby>
     42 <ruby><rtc><rbb></rbb></rtc></ruby>
     43 <ruby><rbb></rbb></ruby>
     44 
     45 <pre></pre>
     46 <script>
     47 let ruby = Array.prototype.slice.call(document.querySelectorAll('ruby,rbb'));
     48 let result = ruby.map(e => window.getComputedStyle(e).display + ', ').reduce((s, t) => s + t, "");
     49 document.querySelector('pre').appendChild(document.createTextNode(result));
     50 </script>
     51 </html>