W3C home > Mailing lists > Public > www-style@w3.org > November 2013

[css3-break] Force-breaking around floats

From: Mihai Balan <mibalan@adobe.com>
Date: Tue, 19 Nov 2013 15:25:42 +0000
To: WWW Style <www-style@w3.org>
Message-ID: <CEB10999.236F3%mibalan@adobe.com>
Hey there!

I recently began playing with floats and fragmentation (in regions mainly)
and I stumbled across some situations where neither the spec nor my
common-sense proved helpful enough. Here's a couple of them, maybe we can
work out something clear and reasonable :)

    1. What should happen when a float contains a forced break (e.g. an
element *inside* the float has `break-after: always`)? I suspect it should
break, but exactly how does that look and how the resulting float
fragments interact with the rest of the content (fragments) is something
that I feel is likely to blow up in our face.
    2. What should happen when a float has a forced break before or after
it? Since we're talking about breaking points, this question actually
comes in two flavours:
      a. the floated element itself has `break-before: always` or
`break-after: always`
      b. the element before or after the float has `break-after: always`
or `break-before: always` set
    The fragmentation spec states that "User agents *should* also apply
these properties to floated boxes []". However, the implications of
applying or not breaks on floats boundaries are not listed anywhere. The
thing that's most unclear to me is: for a UA that applies forced breaks on
a float boundary, in which fragmentainer would the float be rendered?
    Also, since forced breaks are actually properties of a "point" between
boxes and not properties of a box (or element), I doubt it even makes
sense to make applying breaks around floats optional.


Regarding #1 above, I think the sane and simple way would be to just
ignore forced breaks inside floats. As for #2, I'd refrain from making any
proposal before validating/discussing the issue with other people.


Mihai Balan | Quality Engineer @ Web Engine team |  mibalan@adobe.com |
+4-031.413.3653 / x83653 | Adobe Systems Romania
Received on Tuesday, 19 November 2013 15:27:47 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:37 UTC