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
312944
[Flex] Avoid expensive percentage height walk when resolving relative position offsets
https://bugs.webkit.org/show_bug.cgi?id=312944
Summary
[Flex] Avoid expensive percentage height walk when resolving relative positio...
alan
Reported
2026-04-21 17:59:13 PDT
ssia
Attachments
Patch
(27.44 KB, patch)
2026-04-21 18:09 PDT
,
alan
no flags
Details
Formatted Diff
Diff
Patch
(34.26 KB, patch)
2026-04-23 08:04 PDT
,
alan
no flags
Details
Formatted Diff
Diff
[fast-cq]Patch
(36.03 KB, patch)
2026-04-23 13:23 PDT
,
alan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
alan
Comment 1
2026-04-21 18:09:04 PDT
Created
attachment 479237
[details]
Patch
Sammy Gill
Comment 2
2026-04-22 10:25:45 PDT
Comment on
attachment 479237
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=479237&action=review
> Source/WebCore/rendering/RenderBoxModelObject.cpp:342 > + if (logicalHeight.isPercentOrCalculated()) {
Do we know if we need to handle the stretch keyword here in the same way in cases where the stretch size isn't resolvable? I think from my reading of the spec it seems like they behave somewhat similar but not 100% sure. Maybe we could add a testcase for that scenario at least!
alan
Comment 3
2026-04-23 08:04:12 PDT
Created
attachment 479269
[details]
Patch
alan
Comment 4
2026-04-23 08:06:38 PDT
> Do we know if we need to handle the stretch keyword here in the same way in > cases where the stretch size isn't resolvable? I think from my reading of > the spec it seems like they behave somewhat similar but not 100% sure. Maybe > we could add a testcase for that scenario at least!
Right, I keep forgetting about 'stretch'. There's a quirks behavior difference here but otherwise should be handled as percent -Note that stretch fails on trunk -so this is a progression.
Sammy Gill
Comment 5
2026-04-23 10:08:35 PDT
nice, thanks! I just remembered about aspect-ratio and we might need to add that too I think.
alan
Comment 6
2026-04-23 13:23:01 PDT
Created
attachment 479274
[details]
[fast-cq]Patch
EWS
Comment 7
2026-04-23 16:41:23 PDT
Committed
311908@main
(c7c99b8fbe3e): <
https://commits.webkit.org/311908@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 479274
[details]
.
Radar WebKit Bug Importer
Comment 8
2026-04-23 16:42:13 PDT
<
rdar://problem/175466302
>
Sammy Gill
Comment 9
2026-04-29 10:02:30 PDT
Submitted web-platform-tests pull request:
https://github.com/web-platform-tests/wpt/pull/59548
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