Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 78c7ed96c043e6bcb901d17c6e6a5187e6090fbe
https://github.com/WebKit/WebKit/commit/78c7ed96c043e6bcb901d17c6e6a5187e6090fbe
Author: Chris Dumez <[email protected]>
Date: 2026-04-07 (Tue, 07 Apr 2026)
Changed paths:
M Source/WebCore/style/StyleTreeResolver.cpp
Log Message:
-----------
Fix copy-paste typo: check both overflow axes in
scrollContainerSizeForPositionOptions
https://bugs.webkit.org/show_bug.cgi?id=311623
Reviewed by Alan Baradlay.
scrollContainerSizeForPositionOptions checked isScrollContainerY() twice
instead of checking isScrollContainerX() || isScrollContainerY(). This
meant a containing block scrolling only on the horizontal axis would not
be recognized as a scroll container, so scrollbar-induced size changes
would not trigger re-generation of position-try fallback options.
No new tests because the CSS overflow specification requires that if one
axis has non-visible overflow, the other axis is computed to auto as well.
This makes isScrollContainerX() and isScrollContainerY() always agree in
practice, so the bug is currently unobservable.
* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::scrollContainerSizeForPositionOptions):
Canonical link: https://commits.webkit.org/310746@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications