effects of "float" on a table-component in a flex container? from Daniel Holbert on 2012-10-23 (www-style@w3.org from October 2012) (original) (raw)
Hi www-style,
I think I've found a paradox in the spec which needs some clarification.
Basically, the problem is with how the following line interacts with table-fixup:
�float� and �clear� have no effect on a flex item.
Source: http://dev.w3.org/csswg/css3-flexbox/#flex-containers
So -- let's start with a simple situation, with no floating:
NOW: Suppose we add style="float: left" to the
The flexbox spec's "float has no effect" doesn't seem to apply, because the
(b) now we don't need the anonymous table wrapper anymore, so should we still create it?
Among other things, the problem is that we can't easily implement "float has no effect on flex items" because float's effect on computed style happens before decided what is & isn't a flex item.
POSSIBLE RESOLUTION: I believe an earlier version of the spec said something like:
float has no effect on a child of a flex container
except to change their "display" value.
If we switched back to that sort of language, then the problems I'm bringing up would be resolved. In particular -- if the spec said "child" instead of "flex item" here, that'd prevent the circular dependency / paradox of "
Thanks, ~Daniel
Received on Tuesday, 23 October 2012 19:34:38 UTC