Re: [csswg-drafts] [css-box] Clarify whether box-sizing should be considered when resolving padding percent values (#6509)

Having a good night’s sleep helped me realize my mistake — I was confusing a containing block for a box. Sorry for the trouble.

Re-reading the definitions of containing blocks in [css-display]( and [css-2]( snapped me out of it. A containing block is a *rectangle* with a size. It may be established by different things, such as a grid area of a grid container, or a content-box of an ancestor box.

So to answer my own question: no, box-sizing should not be considered, because it doesn’t apply to the concept of containing block. Instead, the size of the containing block depends on the layout context in which a box is to be laid out, and padding percentage values should resolve against that.

GitHub Notification of comment by andyjakubowski
Please view or discuss this issue at using your GitHub account

Sent via github-notify-ml as configured in

Received on Thursday, 12 August 2021 08:17:11 UTC