w3c / csswg-drafts

CSS Working Group Editor Drafts
https://drafts.csswg.org/
Other
4.46k stars 657 forks source link

[css-break] define breaking of floats #3407

Open dbaron opened 5 years ago

dbaron commented 5 years ago

The current breaking specification doesn't appear to define a lot of detail for breaking of floats. I think a definition ought to answer at least the following questions (which are written assuming writing-mode: horizontal-tb):

fantasai commented 5 years ago

I think the first set of questions should be answered in https://www.w3.org/TR/css-break-3/#varying-size-boxes ? Certainly there's an example of exactly the cases you describe.

dbaron commented 5 years ago

There's an example, sure, but not definitions. And the example only covers part, since it doesn't really explain what led to the order of the later fragments.

fantasai commented 5 years ago

The normative prose is: “Fragments of boxes that began on a previous fragmentainer must obey placement rules with the additional constraint that fragments must not be positioned above the block-start edge of the fragmentainer.”

The float-placement rules invoke document order, and fragments must obey the placement rules.