commit e3aac97dee06fef99b39bf7a2eaaaa83de09c169 parent 9af10c35781679ffa7a54488b14badd61f9fc7e2 Author: David Shin <dshin@mozilla.com> Date: Sat, 1 Nov 2025 00:11:57 +0000 Bug 1987917: Fix `anchor()` computation for `outside`. r=layout-anchor-positioning-reviewers,firefox-style-system-reviewers,emilio Differential Revision: https://phabricator.services.mozilla.com/D270602 Diffstat:
3 files changed, 2 insertions(+), 27 deletions(-)
diff --git a/layout/style/GeckoBindings.cpp b/layout/style/GeckoBindings.cpp @@ -1907,8 +1907,9 @@ bool Gecko_GetAnchorPosOffset(const AnchorPosOffsetResolutionParams* aParams, case StyleAnchorSideKeyword::Bottom: return GetEdge(wm.LogicalSideForPhysicalSide(eSideBottom)); case StyleAnchorSideKeyword::Inside: - case StyleAnchorSideKeyword::Outside: return propEdge; + case StyleAnchorSideKeyword::Outside: + return GetOppositeEdge(propEdge); case StyleAnchorSideKeyword::Start: case StyleAnchorSideKeyword::SelfStart: case StyleAnchorSideKeyword::Center: diff --git a/testing/web-platform/meta/css/css-anchor-position/anchor-inside-outside.html.ini b/testing/web-platform/meta/css/css-anchor-position/anchor-inside-outside.html.ini @@ -1,24 +0,0 @@ -[anchor-inside-outside.html] - [.target 2] - expected: FAIL - - [.target 4] - expected: FAIL - - [.target 6] - expected: FAIL - - [.target 8] - expected: FAIL - - [.target 10] - expected: FAIL - - [.target 12] - expected: FAIL - - [.target 14] - expected: FAIL - - [.target 16] - expected: FAIL diff --git a/testing/web-platform/meta/css/css-anchor-position/position-try-fallbacks-001.html.ini b/testing/web-platform/meta/css/css-anchor-position/position-try-fallbacks-001.html.ini @@ -1,2 +0,0 @@ -[position-try-fallbacks-001.html] - expected: FAIL