Re: [csswg-drafts] [css-ruby] How is additional leading calculated? (#5963)

I think we fix that by updating the text to add:

> 1. Imagine a block consisting of two lines each containing ruby identical to this (and no other inline content).
> 2. Find the amount of overlap of the ruby bounding boxes from the two consecutive hypothetical lines.
> 3. If the ruby bounding box overflows its hypothetical line box on only one side, add that amount as extra leading on that side of the the ruby container. If it overflows on both sides, add leading on each side by the amount of overflow on that side.

after that paragraph and then tweak the paragraph wording a bit to accommodate it like so:

> However, if the line-height specified on the ruby container is less than the distance between the top of the top ruby annotation container and the bottom of the bottom ruby annotation container, then additional leading is added <del>on the appropriate side(s) of</del><ins>to</ins> the ruby <del>base container</del> such that if a block consisted of <del>three</del> consecutive lines each containing ruby identical to this, none of the ruby <del>containers</del> would overlap:


@upsuper Does that seem right to you?

-- 
GitHub Notification of comment by fantasai
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5963#issuecomment-775745135 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 07:55:41 UTC