Re: [csswg-drafts] "contain exactly" should be a defined term (#4950)

I think "axis-aligned" introduces the question of _which_ axis, unless that's already a defined term somewhere.

Ignoring transforms seems tricky to me:

What if the transform rotates all the ruby bases' margin boxes together by some value, say 15º? Then the containing box is also the 15º rotated box, right? Or is it?

What if the transform rotates each ruby base's margin box separately by, say, 30º about the centre of each box? Then the containing box is not rotated but is sized to take into account the rotated base boxes, i.e. it would be a bit bigger, right? (or wrong?)

Seems to me like the requirements are:
1. Derive the inline direction as an angle relative to the 2D rendering plane. I'm not actually sure where this data comes from, and if it needs to have some understanding of transformations being applied.
2. Create a rectangle that fully encloses all the post-transformation child boxes, where that rectangle has two edges parallel with the inline direction calculated at 1. and where every edge shares at least one point with at least one point on an edge of any of the child boxes.

-- 
GitHub Notification of comment by nigelmegitt
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4950#issuecomment-615169239 using your GitHub account

Received on Friday, 17 April 2020 10:23:56 UTC