Re: [csswg-drafts] How to increase margins of containers for pending floats ? (#4052)

No, I don't want the grid layout, because the floats have sizes completely independant of the inner box I want to place and compeltely unpredictable: these floats are generated externally and there's not even any way to know when they exist.
As well the flex layout would not work: it would force the floats (from anywhere before) to use the whole vertical size of the inner box, or would force the inner box to fill the while vertical size of the float.

A typical usage is when the inner box shows a notication box or an horizontal navbox that should be completely opaque and not being covered by any prior floats. And the presence of these floats must not cause the inner boxes to have their content size expanded vertically.

Finaly note: the inner box may also have their own floats: but because the margins was expanded, they can continue to be aligned vertically with the prior floats (i.e. outside the inner box, unless the inner box is a new "relative" parent for containing these inner floats. In the inner box, the inline content can still wrap around the inner floats when needed, for example when the inner floats are larger than the prior floats). As well the inner floats will fit below prior floats, stacking vertically as necessary, they won't cause additional "clears" of the contents of the inner box.

This proposal is consistant with simple formatting of articles with illustrations or lateral notes placed in floats.


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

Received on Friday, 28 June 2019 01:42:41 UTC