Slowly removing/reducing the margin collapsing quirk. #10296
Labels
needs implementer interest
Moving the issue forward requires implementers to express interest
normative change
topic: rendering
What is the issue with the HTML Standard?
Hi all,
Occasionally we (Blink) get bug reports about the margin collapsing quirk. Either a developer doesn't get a margin when they are expecting one, and/or there is a subtle difference between implementations.
See: https://html.spec.whatwg.org/#margin-collapsing-quirks
We (Blink) suspect it's possible to slowly remove/reduce this quirk by slowing limiting the cases it applies.
We are prepared to (slowly) start removing it by removing the quirk for various elements, for example starting with
pre
,xmp
,plaintext
,listing
.It's plausible (but not a certainty, just an example) that we'll end up in a situation where the quirk will apply to say
p
,h1
,h2
and only in the<body>
.Unfortunately due to how margin collapsing works, this is difficult (for us) to use-count, hence starting small with some of the lesser used elements.
Thoughts?
Thanks,
Ian
The text was updated successfully, but these errors were encountered: