Re: [csswg-drafts] [css-display] Parent box of run-in or non-principal box (#3158)

> Well, it seems the definition is excluding element-generated non-principal boxes for some reason. And it's not clear whether this is intentional.

Aha. That's definitely an error. :)

> In the box tree, the boxes generated by an element are descendants of the principal box of any ancestor elements.

Hm, that's a good one. I've rearranged some of the sentences and incorporated yours, it's now a separate paragraph before the one defining "anonymous boxes", like this:

> In constructing the box tree, boxes generated by an element are descendants of the principal box of any ancestor elements. In the general case, the direct parent box of an element’s principal box is the principal box of its nearest ancestor element that generates a box; however, there are some exceptions, such as for run-in boxes, display types that generate multiple container boxes (such as tables), and intervening anonymous boxes.

What do you think?

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

Received on Tuesday, 21 May 2019 22:51:36 UTC