Bug 314898

Summary: shrink-to-fit boxes do not update their width when they gain or lose a scrollbar
Product: WebKit Reporter: Sammy Gill <sgill26>
Component: Layout and RenderingAssignee: Sammy Gill <sgill26>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/60077
Attachments:
Description Flags
Testcase none

Sammy Gill
Reported 2026-05-15 09:32:31 PDT
In the attached testcase we should see a 20px wide rectangle but the scrollbar ends up shrinking the space for that content.
Attachments
Testcase (219 bytes, text/html)
2026-05-15 09:32 PDT, Sammy Gill
no flags
Sammy Gill
Comment 1 2026-05-15 09:32:54 PDT
Created attachment 479679 [details] Testcase
Radar WebKit Bug Importer
Comment 2 2026-05-15 09:33:56 PDT
Sammy Gill
Comment 3 2026-05-15 10:05:57 PDT
Alexey Proskuryakov
Comment 4 2026-05-15 17:55:16 PDT
*** Bug 314897 has been marked as a duplicate of this bug. ***
EWS
Comment 5 2026-05-17 21:51:05 PDT
Committed 313390@main (999b6ea5d83a): <https://commits.webkit.org/313390@main> Reviewed commits have been landed. Closing PR #64814 and removing active labels.
Sammy Gill
Comment 6 2026-05-21 10:36:25 PDT
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/60077
Note You need to log in before you can comment on or make changes to this bug.