W3C home > Mailing lists > Public > www-style@w3.org > February 2015

Re: [css-ruby][css-text-decor] Text-decoration on ruby

From: Xidorn Quan <quanxunzhen@gmail.com>
Date: Thu, 5 Feb 2015 19:28:12 +1100
Message-ID: <CAMdq69_Tm4khbYf8PCTJWANROxCSGWcDHvZk8sRC6H87_83M+A@mail.gmail.com>
To: www-style list <www-style@w3.org>
On Thu, Feb 5, 2015 at 6:09 PM, Xidorn Quan <quanxunzhen@gmail.com> wrote:

> It is not clear how text decorations should be rendered on ruby elements,
> or more specifically, what should happen on sides of short base text with
> long annotation?
>
> For example, if we have content like:
>
> <ruby>base 1<rt>a very very very long annotation</rt>base 2<rt>another
> very very very long annotation</rt></ruby>
>
> then we specify "text-decoration: underline" to <ruby> or some of its
> inline ancestors. What should happen? Currently, WebKit and Blink and
> Trident won't draw the underline in the gap between the bases, and between
> text preceding/following and the ruby, while Gecko will draw lines in those
> places. More precisely, Gecko currently extends the decoration lines to the
> boundary of each box, other impls don't do that.
>
> It seems to me that our (Gecko) impl makes more sense if the ruby is part
> of a sentence, while other impls make more sense when ruby is put alone as
> a single word.
>
> This problem becomes more complicated when considering the different
> values of ruby-align. I guess users of "center" and "start" probably don't
> want to extend the lines to the boundary of boxes.
>

The same question applies to ruby annotations as well. It is also not clear
whether text decorations on annotations should be connected together across
columns.

- Xidorn
Received on Thursday, 5 February 2015 08:29:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:01 UTC