Skip to content

[css-contain] To which box does paint containment clip? #1809

@Loirooriol

Description

@Loirooriol

CSS Contain says

If the element does not generate a principal box [...] paint containment has no effect. Otherwise, giving an element paint containment has the following effects:

  • The contents of the element must be clipped to the element’s content box, including both the paint of the descendants and their geometry.

First, it should be "content area of a box" instead of "content box". Then, of which box? An element may generate multiple boxes; for example, a table element generates a principal table wrapper box and an inner table box. I guess it should be the principal box, mentioned earlier, but that's not clear.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions