Skip to content

Commit 70f2f26

Browse files
committed
[css-ruby] Default stylesheet handles font-size correctly when rtc is used and rt is missing
1 parent ccd7bb0 commit 70f2f26

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

css-ruby/Overview.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1413,9 +1413,11 @@ <h3 class="no-num heading settled" id=default-ua-ruby><span class=content>
14131413
<pre>ruby { display: ruby; }
14141414
rb { display: ruby-base; white-space: nowrap; }
14151415
rp { display: none; }
1416-
rt { display: ruby-text; white-space: nowrap; font-size: 50%; }
1416+
rt { display: ruby-text; }
14171417
rbc { display: ruby-base-container; }
14181418
rtc { display: ruby-text-container; }
1419+
rtc, rt { white-space: nowrap; font-size: 50%; }
1420+
rtc &gt; rt { font-size: inherit; }
14191421
ruby, rb, rt, rbc, rtc { unicode-bidi: isolate; }</pre>
14201422

14211423
<p>Additional rules for UAs supporting the relevant features of <a data-biblio-type=informative data-link-type=biblio href=#biblio-css3-text-decor title=CSS3-TEXT-DECOR>[CSS3-TEXT-DECOR]</a> and <a data-biblio-type=informative data-link-type=biblio href=#biblio-css3-fonts title=CSS3-FONTS>[CSS3-FONTS]</a>:

css-ruby/Overview.src.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1502,9 +1502,11 @@ <h3 id="default-ua-ruby" class="no-num">
15021502
<!-- -->ruby { display: ruby; }
15031503
<!-- -->rb { display: ruby-base; white-space: nowrap; }
15041504
<!-- -->rp { display: none; }
1505-
<!-- -->rt { display: ruby-text; white-space: nowrap; font-size: 50%; }
1505+
<!-- -->rt { display: ruby-text; }
15061506
<!-- -->rbc { display: ruby-base-container; }
15071507
<!-- -->rtc { display: ruby-text-container; }
1508+
<!-- -->rtc, rt { white-space: nowrap; font-size: 50%; }
1509+
<!-- -->rtc > rt { font-size: inherit; }
15081510
<!-- -->ruby, rb, rt, rbc, rtc { unicode-bidi: isolate; }</pre>
15091511

15101512
<p>Additional rules for UAs supporting the relevant features of [[CSS3-TEXT-DECOR]] and [[CSS3-FONTS]]:

0 commit comments

Comments
 (0)