Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 2b1d3c03ed716d5f0c81989398b8deaaada4db40 https://github.com/WebKit/WebKit/commit/2b1d3c03ed716d5f0c81989398b8deaaada4db40 Author: Kiet Ho <kiet...@apple.com> Date: 2025-09-16 (Tue, 16 Sep 2025)
Changed paths: A LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-in-scroller-with-left-side-scrollbar-expected.txt A LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-in-scroller-with-left-side-scrollbar.html M LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-borders-002-expected.txt A LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-in-scroller-with-left-side-scrollbar-expected.txt M Source/WebCore/style/AnchorPositionEvaluator.cpp Log Message: ----------- [css-anchor-position-1] Account for left scrollbar when calculating anchor position rdar://155852237 https://bugs.webkit.org/show_bug.cgi?id=295964 Reviewed by Elika Etemad. If an anchor is in a RTL containing block (horizontal right-to-left, or vertical-rl), the scrollbar of the containing block is on the left. In that case, adjust the calculated position of the anchor to account for the left scrollbar Test: imported/w3c/web-platform-tests/css/css-anchor-position/anchor-in-scroller-with-left-side-scrollbar.html * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-in-scroller-with-left-side-scrollbar-expected.txt: Added. * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-in-scroller-with-left-side-scrollbar.html: Added. - Add test to test anchor in scroller with left-hand-side scrollbar (e.g in horizontal RTL or vertical-rl writing mode) * LayoutTests/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-position-borders-002-expected.txt: * LayoutTests/platform/ios/imported/w3c/web-platform-tests/css/css-anchor-position/anchor-in-scroller-with-left-side-scrollbar-expected.txt: Added. - Add expectation for iOS only. Test is failing in vertical-rl writing mode. Tracked at https://bugs.webkit.org/show_bug.cgi?id=298893. * Source/WebCore/style/AnchorPositionEvaluator.cpp: (WebCore::Style::AnchorPositionEvaluator::computeAnchorRectRelativeToContainingBlock): (WebCore::Style::computeInsetValue): Canonical link: https://commits.webkit.org/300018@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes