A partial archive of discourse.wicg.io as of Saturday February 24, 2024.

Should <section> default to display: flow-root?

jhpratt
2017-04-10

I think this is what makes most sense, given that it makes little sense to want <section>s to collapse, so to speak. Floats would presumably be confined to that section, which IMO is the entire purpose behind the <section> tag.

Edit: Just to tag onto this, I don’t think it’s just section. Most semantic tags introduced in HTML5 would all benefit from being default display: flow-root.

tabatkins
2017-04-10

No, that would be a significant breaking change to pages. It might have made sense a decade ago when these tags were first introduced, but definitely can’t be done now.

jhpratt
2017-04-10

Hmm, didn’t even think of the breaking changes. Disregard :slight_smile: