Re: [csswg-drafts] [css-display] Understanding blockification (#12216)

> If the box is inline flow, blockification guarantees a block container there.

Sure. But in general the blockified box may not be an inline box.

> Other than that, why do we care if an absolutely positioned element generates a block-level box?

A `block` outer display type means that it's not inline-level. It doesn't mean that it actually participates in block layout.

> Maybe not a contradiction, but this means that in layout, you have to use pre-computed styles

Yes, implementations need some special logic to handle that, e.g. https://searchfox.org/mozilla-central/rev/dbef1a2f75798fb0136b7428d959c8feb09ad5d1/servo/components/style/properties/properties.mako.rs#1415.

That's just how it is and highly unlikely to be changeable at this point.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 21 May 2025 13:49:37 UTC