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

Re: [css-text-decor][css-ruby] Underline position for Japanese text with ruby

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 29 Jun 2015 18:48:36 -0400
Message-ID: <5591CB44.3050702@inkedblade.net>
To: www-style@w3.org
On 06/28/2015 06:44 PM, Xidorn Quan wrote:
>
> This does seem to be an issue.
>
> In our current spec, the positions of underline and ruby annotation are:
> * if underline position is right, the underline is put to the right of the text content [1]
> * the margin box of rbc and rtc are put without intervening space [2]
>
> This means, if both underline and ruby annotation are specified, and author doesn't add any space to either the base or the
> annotation, the underline and annotation may overlap each other in some fonts.
>
> I have no idea how this issue could be solved. If we want to change the position of underline, the only option is to move it
> inwards, which may make it overlap with the base text. Hence we cannot do that.
>
> Changing position of ruby annotation isn't quite a good option either, since it could break interop. But given the interop has
> already been broken due to the height of inline box being UA-defined [3], we probably can do something there?
>
> [1] http://dev.w3.org/csswg/css-text-decor-3/#underline-right
> [2] http://dev.w3.org/csswg/css-ruby/#ruby-layout
> [3] https://lists.w3.org/Archives/Public/www-style/2015May/0276.html

Well, text-decoration is defined not to affect layout, so we can't *add* space.

~fantasai
Received on Monday, 29 June 2015 22:49:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:55 UTC