Re: [csswg-drafts] [css-box] Explicit control over margin collapsing

As there are [cases where margins do not collapse](https://drafts.csswg.org/css-box-3/#collapsing-margins), this also needs an `auto` value as default.

There are also use cases, in which you want to control the margin collapsing between container and inner elements separatedly from the collapsing between elements. Therefore, there should be a second keyword allowing to define this.

I.e. the syntax would then be something like this:

    [ auto | collapse | separate ] [ auto | collapse | separate ]?

where the first keyword controls the collapsing between elements and the second keyword the collapsing between inner and outer elements.

Example: https://jsfiddle.net/SebastianZ/k7ndbrt0/.

Sebastian

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

Received on Friday, 5 May 2017 06:39:21 UTC