[csswg-drafts] [css-ruby] Be more specific about the box model of base/annotation container boxes (#4937)

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

== [css-ruby] Be more specific about the box model of base/annotation container boxes ==
(this issue is similar to, but different from #4935 and #4936)

[Section 3](https://drafts.csswg.org/css-ruby-1/#ruby-layout) tells us that:
* > Each ruby base container is sized and positioned to contain exactly all of its ruby bases’ margin boxes.
* > Each ruby annotation container is sized and positioned to contain exactly all of its ruby annotations’ margin boxes

Presumably that means "**The content area of** each ruby base/annotation container…" (and then any borders, margins, and padding goes outside of that). This should be clarified.

The same section 3 also states:
> Ruby annotation containers are stacked outward over or under their corresponding ruby base container, without any intervening space.

This could be interpreted to mean either:
* **the content box of** ruby annotation containers are stacked outward over or under **the content box of** their corresponding ruby base container, **ignoring any border, margin, or padding,** without any intervening space.
* **the margin box of** ruby annotation containers are stacked outward over or under **the margin box of** their corresponding ruby base container, without any intervening space.

[Section 3.2](https://drafts.csswg.org/css-ruby-1/#box-style) gives a hint:

> […] the UA is not required to support any of the box properties (borders, margins, padding), any of the background properties or outline properties, or any other property that illustrates the bounds of the box on ruby base container boxes, ruby annotation container boxes […]

Given that, I suspect the former (content box) interpretation is indented, otherwise whether borders, margins, and padding on base container boxes and annotation container boxes affect layout out nor would be implementation dependent, which would be bad. But this should be made explicit.

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

Received on Friday, 10 April 2020 04:09:19 UTC