Skip to content

[css-display] Parent box of run-in or non-principal box #3158

Closed
@Loirooriol

Description

@Loirooriol

https://drafts.csswg.org/css-display-3/#css-parent-box says

The parent box of an element’s principal box is (except in the case of run-in) the principal box of its nearest ancestor element that generates a box.

Run-in boxes are described as an exception, but their "parent box" is not properly defined. Should be done in https://drafts.csswg.org/css-display-3/#run-in-layout. Intuitively it will be the "block box that does not establish a new block formatting context" to which the run-in sequence "is inserted as direct children".

And also the "parent box" of a non-principal box is not defined. In all element-generated cases it seems to be the principal box of the generating element. For anonymous boxes, maybe the nearest ancestor in the box tree which is a principal box.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions