W3C home > Mailing lists > Public > www-style@w3.org > April 2011

RE: [css3-ruby] block elements inside <ruby> and wrapping inside <rb>.

From: Koji Ishii <kojiishi@gluesoft.co.jp>
Date: Sun, 3 Apr 2011 13:53:36 -0400
To: 塩澤 元 (Shiozawa, Hajime) <hajime.shiozawa@gmail.com>, "www-style@w3.org" <www-style@w3.org>
Message-ID: <A592E245B36A8949BDB0A302B375FB4E0AB3D55673@MAILR001.mail.lan>
The two issues are separate, right?

For the first issue (block elements inside ruby base text), I think neither IE nor WebKit is correct. There should be anonymous inline-level box for ruby base if I understand the spec correctly, and ruby text should be placed over the box. I'm not sure if there's any use case to put block elements inside ruby base though.

The second issue seems to be line breaking issue. I think IE behavior is correct. Line breaking within <ruby> element is not allowed for the simple ruby with single <rt> element; a.k.a. "group ruby" as defined by JLREQ. The CSS3 Ruby[1] is not verbose about this, but since it only allows line breaking for complex ruby, I assume line breaking should not be allowed in this case.

[1] http://dev.w3.org/csswg/css3-ruby/#ruby-line-breaking



Regards,
Koji

-----Original Message-----
From: www-style-request@w3.org [mailto:www-style-request@w3.org] On Behalf Of 塩澤 元 (Shiozawa, Hajime)
Sent: Friday, March 25, 2011 8:59 PM
To: www-style@w3.org
Subject: [css3-ruby] block elements inside <ruby> and wrapping inside <rb>.

I have two problems about block elements inside <ruby> and wrapping inside <rb>.
IE and Webkit have different rendering in these cases.


1: block elements inside <ruby>
[Markup]
ABC<ruby><div>D<div>E</div>F</div><rt>def</rt></ruby>GHI

[IE]
ABC
D
E
F
defGHI

[Webkit]
  def
   D
   E
ABCFGHI


2: wrapping inside <rb>
[Markup]
<div style='width:40px;'>
あいうえお<ruby><rb>かきくけこ</rb><rt>def</rt></ruby>さしすせそ
</div>

[IE]
あい
うえ
お
  abcdef
かきくけこ
さし
すせ
そ

[Webkit]
あい
うえ
お
abcdef
かき
くけこ
さし
すせ
そ

(*Acutually, the font size of "def" and "abcdef" is smaller than this example.)

Webkit is very comprehensible concerning blocks, but I think that it would be better to ignore block element.
In the case of wrapping inside <rb>, I think the behaviour of IE is much better.

What do you think?


Regards,
Hajime.


--
# 塩澤 元 (Shiozawa, Hajime)
# mail: hajime.shiozawa@gmail.com


Received on Sunday, 3 April 2011 17:55:32 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:39 GMT