Open jensimmons opened 5 days ago
Sounds pretty reasonable to me. And aligning the keywords with the other properties that take box values makes sense, too.
Here's a visual.
The CSS Working Group just discussed [css-rhythm-1] Add `content-box` to `block-step-insert` so authors can have content grow instead of adding space
, and agreed to the following:
RESOLVED: Switch block-step-insert margin and padding values to margin-box | padding-box and add content-box, with attention to impact on aspect-ratio
In CSS Rhythm level 1 the
block-step-insert
property has two values:margin
andpadding
, to specify whether the space added in order to step everything to the step unit is margin or padding. https://drafts.csswg.org/css-rhythm/#block-step-insertI can imagine a lot of user cases where instead the author would want the content box to grow — for images, for instance. (Then
object-fit: cover
could be applied to the image, creating a slight crop, to get the image box to beautifully be the right height that's an increment of the step unit. And there is no "extra space".)So let's change the definition to be:
I like
margin-box
andpadding-box
better as well — since we aren't really adding to the margin or padding. The margin and padding will still be what they are, defined by the author/UA. We are adding extra space into the margin box or the padding box. These values make that more clear.