W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2017

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

From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
Date: Fri, 05 May 2017 06:39:12 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-299393631-1493966350-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 10:12:53 UTC