-
Notifications
You must be signed in to change notification settings - Fork 756
Description
(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.