Open Bug 1226108 Opened 4 years ago Updated Last year
position: absolute elements with auto offset in ruby-text are positioned incorrectly
For example, open page: data:text/html;charset=UTF-8,<ruby style="ruby-align:center">有<rt>あ<span style="position:absolute">リ</span></rt></ruby> The character "リ" is lower than the position if should be if it is inline. It could be a valid use case in the future for Okurigana annotation in Kanbun (annotated Classic Chinese in Japanese) which can still be seen in textbook in Japan.
Summary: position: absolute elements with auto offset are positioned incorrectly → position: absolute elements with auto offset in ruby-text are positioned incorrectly
It seems more likely that nsHTMLReflowState::CalculateHypotheticalPosition is doing something wrong than the problem being that we're doing the positioning of the absolutely positioned element too early, although both could cause this sort of thing.
I think the issue is in nsHTMLReflowState::CalculateHypotheticalPosition. That function tries to align the box to the position of the line box, however, ruby text container does not provide any line box.
Component: Layout: Block and Inline → Layout: Ruby
You need to log in before you can comment on or make changes to this bug.