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

[csswg-drafts] [css-ruby] White space collapse between ruby annotations

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Fri, 27 Oct 2017 06:40:51 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-269003174-1509086448-sysbot+gh@w3.org>
upsuper has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-ruby] White space collapse between ruby annotations ==
Copy from [my email to www-style](https://lists.w3.org/Archives/Public/www-style/2015Jul/0091.html):
> It seems the current spec is not very clear about how white space collapse should happen on ruby annotations.
>
> There is a sentence says "Where undiscarded white space is collapsible, it will collapse following the standard white space processing rules", but I don't find anywhere mentions the normal white spaces inside ruby annotation.
>
> Let's see an example. If we have a ruby tag like:
> ```
> <ruby>
>   <rb>a</rb><rb>b</rb>
>   <rt>x␣</rt><rt>␣y</rt>
> </ruby>
> ```
>
> If we consider the two ruby text boxes are in the same line, and thus use the standard processing rules to handle the white spaces here, we would get the same result as:
> ```
> <ruby>
>   <rb>a</rb><rb>b</rb>
>   <rt>x␣</rt><rt>y</rt>
> </ruby>
> ```
>
> But it doesn't seem to make sense having a different result between this code and
> ```
> <ruby>
>   <rb>a</rb><rt>x␣</rt><rb>b</rb><rt>␣y</rt>
> </ruby>
> ```
>
> Hence I propose that we do not collapse white space across the boundary of ruby text box.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1909 using your GitHub account
Received on Friday, 27 October 2017 06:40:54 UTC

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