WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
267167
Remove 'float:none' for computed value for Flex/Grid Items
https://bugs.webkit.org/show_bug.cgi?id=267167
Summary
Remove 'float:none' for computed value for Flex/Grid Items
Ahmad Saleem
Reported
2024-01-05 20:13:14 PST
Hi Team, While looking into browser specific failures, I noted that we fail two tests:
https://wpt.fyi/results/css/css-display/display-with-float-dynamic.html?label=master&label=experimental&aligned&q=safari%3Afail
https://wpt.fyi/results/css/css-display/display-with-float.html?label=master&label=experimental&aligned=&q=safari%3Afail
> display-with-float-dynamic.html > display-with-float.html
I noticed that we have computed value as 'None'. Looking into 'Blink' change, I noticed, we have also it in StyleAdjuster.cpp as 'None'. Removing the line:
https://github.com/WebKit/WebKit/blob/fd569defc022c2d1e03658764ac31816e0267ef1/Source/WebCore/style/StyleAdjuster.cpp#L490
//
https://www.w3.org/TR/css-display/#transformations
// "A parent with a grid or flex display value blockifies the box’s display type." if (m_parentBoxStyle.isDisplayFlexibleOrGridBox()) { style.setFloating(Float::None); style.setEffectiveDisplay(equivalentBlockDisplay(style)); } to just: //
https://www.w3.org/TR/css-display/#transformations
// "A parent with a grid or flex display value blockifies the box’s display type." if (m_parentBoxStyle.isDisplayFlexibleOrGridBox()) { style.setEffectiveDisplay(equivalentBlockDisplay(style)); } ___ We start progressing above two tests. I haven't run whole 'css' (WPT suite) or other tests but just wanted to raise bug so we can track and fix it. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2024-01-05 20:32:47 PST
It might progress following as well: flex-legend-float-abspos.html fieldset-grid.html fieldset-flexbox.html
Radar WebKit Bug Importer
Comment 2
2024-01-12 20:14:13 PST
<
rdar://problem/120934759
>
Frédéric Wang Nélar
Comment 3
2026-03-04 22:37:42 PST
@Ahmad: I think this is a duplicate of
bug 172999
(well, at least for flex items). Indeed, removing the corresponding lines from the the style adjuster would progress some tests for the computed style, but we still need a way to blockifying flex/grid items, otherwise other tests will fail. Maybe what was done in Chromium at
https://issues.chromium.org/issues/41093673
can be a source of inspiration, dunno.
Frédéric Wang Nélar
Comment 4
2026-03-04 23:31:22 PST
*** This bug has been marked as a duplicate of
bug 172999
***
Frédéric Wang Nélar
Comment 5
2026-03-05 02:07:19 PST
(In reply to Ahmad Saleem from
comment #1
)
> It might progress following as well: > > flex-legend-float-abspos.html > > fieldset-grid.html > > fieldset-flexbox.html
I'm unsure why, these don't see to test the float computed value? (And the layout should remain the same).
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug