[css2][css-flexbox][css-grid] Specify computed value of float property on grid/flex items #8130
Labels
Closed as Question Answered
Used when the issue is more of a question than a problem, and it's been answered.
CSS2
css-flexbox-1
Current Work
css-flow-3
css-grid-1
css-grid-2
Subgrid; Current Work
cc @bkardell @bfgeek
From https://w3c.github.io/csswg-drafts/css2/#propdef-float :
The computed value of float is "as specified". However, it is also mentioned that it "only applies to elements that generate boxes that are not absolutely positioned."
From https://drafts.csswg.org/css-flexbox-1/#flex-containers :
"float and clear do not create floating or clearance of flex item and do not take it out-of-flow"
From https://drafts.csswg.org/css-grid/#grid-containers:
"float and clear have no effect on a grid item"
Now consider the following testcase:
I'm getting the following computed values for Firefox and Chrome (note that the computed float value of absolutely positioned element is
none
):For WebKit, I'm getting the same, except that Flexbox and Grid items also have a computed float value of
none
.So it looks like the spec and browsers disagree about the computed
float
value.(Note: Handling of floats in
math
display is being considered and we will likely do the same as flexbox/grid here)The text was updated successfully, but these errors were encountered: