- From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
- Date: Wed, 14 Nov 2018 04:06:18 +0000
- To: public-css-archive@w3.org
Good point (also, welcome to the CSSWG, it's great to have you participate). I find it easier to reason about when thinking about individual elements than with fragmentainers, but it is true that we need to think through the implications on margin collapsing, and that your approach gives an easy way out of that problem. If we end up not taking your suggestion, I think we should be extra careful about what happens to collapsible margins with a different setting. As for use cases, it seems to me that something like this is reasonable: ```css h1 { margin-top: 5em; break-before: right; margin-break: keep; } h2, hr { break-before: always; margin-break: discard; } @media print { hr { border: none; } } ``` This preserves a (large) top margin a the beginning of chapters, but drops it at the beginning of subsections (either marked by a lower level heading or by an `<hr>` element). -- GitHub Notification of comment by frivoal Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3314#issuecomment-438530286 using your GitHub account
Received on Wednesday, 14 November 2018 04:06:20 UTC