- 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>
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 UTC