Re: [csswg-drafts] [css-display-3] parent box vs anon boxes

> I believe that it is desired that anonymous boxes can have an element's principal box as a child box

IMO the problem is that this "parent box" concept has a misleading name. It doesn't refer to the parent node in the box tree. So I agree that anonymous boxes can have children in the box tree, but they are just not taken into account by this "parent box" concept. I don't know whether this is appropriate because I haven't seen any use of the concept.

> anonymous box should sometimes furthermore establish the containing block

I'm not that sure. In [CSS2](https://drafts.csswg.org/css2/visuren.html#anonymous-block-level), it's true that anonymous boxes can generate a containing block, but then they are skipped when doing percentage resolution:

> Anonymous block boxes are ignored when resolving percentage values that would refer to it: the closest non-anonymous ancestor box is used instead.

However, I haven't seen this statement ratified by any CSS3 spec. This makes me think that maybe anonymous boxes can no longer generate a containing block. In fact, before the big rewrite, CSS Box defined containing block like this:

https://github.com/w3c/csswg-drafts/blob/24ef9b696e69c76e0a0b8425bd8e11a116f64a0f/css-box-3/Overview.bs#L564-L568

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

Received on Sunday, 28 October 2018 14:24:02 UTC