Re: [csswg-drafts] [css- not sure] child-contain: border-box; to resolve child margins at parents edge

It might solve my problem, however would it not make more semantic sense to have a property which may be applied on any element?

`child-contain: border-box;` (Instructs that the margins of any child element will not be contained, but the borders and padding will be. Margins still have affect between children.)

Other options:
`child-contain: padding-box;` (margin and border of any child element will overflow)
`child-contain: margin-box;` (default, contain every part of child elements)

not sure if `child-contain: content-box;` will have a use case.

When gap is introduced, the issue has been addressed for flex boxes, but why not introduce a more general property which may apply on all relatively or statically positioned elements?

-- 
GitHub Notification of comment by Meteor0id
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2848#issuecomment-415974460 using your GitHub account

Received on Saturday, 25 August 2018 14:51:50 UTC