2 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8">
6 var child
= document
.createElement('rb');
7 child
.textContent
= 'content';
8 document
.querySelector('rbc').appendChild(child
)
10 child
= document
.createElement('rt');
11 child
.textContent
= 'content';
12 document
.querySelector('.reading').appendChild(child
);
14 child
= document
.createTextNode('text');
15 var rb
= document
.querySelector('.rb');
16 rb
.insertBefore(child
, rb
.firstChild
);
18 child
= document
.createTextNode('text');
19 var rt
= document
.querySelector('.rt');
20 rt
.insertBefore(child
, rt
.firstChild
);
22 child
= document
.createElement('rt');
23 child
.innerText
= 'Test';
24 document
.querySelector('#ruby').appendChild(document
.createTextNode('T'));
25 document
.querySelector('#ruby').appendChild(child
);
30 ruby:first-letter { font-size:
20px; color: red; }
31 rt:first-letter { font-size:
20px; color: blue; }
32 rb:first-letter { font-size:
20px; color: green; }
33 rbc:first-letter { font-size:
20px; color: purple; }
34 rtc:first-letter { font-size:
20px; color: orange; }
35 rp:first-letter { font-size:
20px; color: brown;}
38 <div>This test is verifying that adding content that uses first letter into
39 ruby tags works correctly.
</div>
41 <p><ruby
> is defined in the
42 <ruby id='ruby'
>H
<rt>Hyper
</rt>T
<rt>Text
</rt>M
<rt>Markup
</rt>L
<rt>Language
</rt>5<rt>Level
43 5</rt></ruby> specs.
</p>
53 <rt class='rt'
>さい
</rt>
58 <rtc class=
"annotation">
59 <rt rbspan=
"4" xml:
lang=
"en">W3C Associate Chairman
</rt>