[csswg-drafts] [css-ruby] Style of intra-annotation white spaces (#5962)

frivoal has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-ruby] Style of intra-annotation white spaces ==
(Initially reported by @upsuper in https://www.w3.org/Mail/flatten/index?subject=https%3A%2F%2Flists.w3.org%2FArchives%2FPublic%2Fwww-style/2014Nov/0408.html )

>I notice a problem when I implement the vertical positioning of ruby annotations. The problem is that, the intra-annotation white spaces cannot be properly styled, which makes the height of text container look incorrect. For example, there is a piece of code in the spec:
>
> ```
> <ruby>
>   <rb>one</rb> <rb>two</rb>
>   <rt>1</rt> <rt>2</rt>
> </ruby>
> ```
>
>
> After generating anonymous boxes, the frame tree is similar to:
>
> ```
> <ruby>
>   <pseudo-rbc><rb>one</rb><pseudo-rb> <pseudo-rb><rb>two</rb></pseudo-rbc>
>   <pseudo-rtc><rt>1</rt><pseudo-rt> </pseudo-rt><rt>2</rt></psedudo-rtc>
> </ruby>
> ```
> 
>
>
> Here, authors cannot specify any style for the pseudo-rt. It won't have a problem in normal case if UA gives the elements a proper default style. But in some cases, author may want to specify different style to annotations, for example, "rt { font-size: 30%; }". Then the boxes for the intra-annotation white space would be taller than its neighbors.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5962 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 9 February 2021 04:34:13 UTC