Re: [csswg-drafts] Clarify float positioning with anonymous block-level boxes (#11226)

> Does each sequence of floats get assigned to the anonymous block box that immediately precedes them?

Yes, that's what we do in Servo. If the preceding in-flow content is inline-level, we put the float into that inline formatting context. Otherwise we put it into the list of block-level boxes of the block container. See https://github.com/servo/servo/blob/f71f38bd3de00180b2dc632ef3cce90c558cfa06/components/layout_2020/flow/construct.rs#L570-L599

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


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

Received on Sunday, 17 November 2024 20:30:33 UTC