W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2017

[csswg-drafts] [css-ruby][css-text-decor] Underline position for Japanese text with ruby

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Sun, 29 Oct 2017 23:27:43 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-269447778-1509319662-sysbot+gh@w3.org>
upsuper has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-ruby][css-text-decor] Underline position for Japanese text with ruby ==
(The original topic from [my first email in this thread](https://lists.w3.org/Archives/Public/www-style/2015Jun/0340.html) is probably not relevant, as Japanese people have confirmed that the current behavior of Firefox makes sense, and there is probably no clarification needs to be added to the spec. But there is another related issue raised in the thread.)

Copy from [my old email](https://lists.w3.org/Archives/Public/www-style/2015Jun/0360.html):
> Masayuki-san mentioned another issue in Twitter: https://twitter.com/d_toybox/status/615061112019513344
> 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

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1918 using your GitHub account
Received on Sunday, 29 October 2017 23:27:48 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:19 UTC