W3C home > Mailing lists > Public > public-css-archive@w3.org > August 2021

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

From: Andy Jakubowski via GitHub <sysbot+gh@w3.org>
Date: Thu, 12 Aug 2021 08:17:09 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-897440718-1628756228-sysbot+gh@w3.org>
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](https://drafts.csswg.org/css-display-3/#containing-block) and [css-2](https://www.w3.org/TR/CSS2/visudet.html#containing-block-details) 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 https://github.com/w3c/csswg-drafts/issues/6509#issuecomment-897440718 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 12 August 2021 08:17:11 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:42 UTC