From 6ce7e0b3ca7de121d293ceedd9bd7654aaa1e94e Mon Sep 17 00:00:00 2001 From: David Shin Date: Wed, 13 Nov 2024 19:35:45 +0000 Subject: [PATCH] Part 6 - Adjust test expectations. Differential Revision: https://phabricator.services.mozilla.com/D228243 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1915021 gecko-commit: 26cdabcaa8fb2026b274bec094b498b4c895813a gecko-reviewers: jwatt --- css/css-anchor-position/anchor-parse-valid.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/css/css-anchor-position/anchor-parse-valid.html b/css/css-anchor-position/anchor-parse-valid.html index ec1c4971349cca..742afa92b961bc 100644 --- a/css/css-anchor-position/anchor-parse-valid.html +++ b/css/css-anchor-position/anchor-parse-valid.html @@ -70,7 +70,9 @@ } // Tests that anchor() can be used in a calc tree -test_valid_value('top', 'calc((anchor(--foo top) + anchor(--bar bottom)) / 2)'); -test_valid_value('top', 'anchor(--foo top, calc(anchor(--bar bottom) * 0.5))'); +// Still follow the simplification process as outlined in https://drafts.csswg.org/css-values-4/#calc-simplification +test_valid_value('top', 'calc((anchor(--foo top) + anchor(--bar bottom)) / 2)', 'calc(0.5 * (anchor(--foo top) + anchor(--bar bottom)))'); +test_valid_value('top', 'calc(0.5 * (anchor(--foo top) + anchor(--bar bottom)))'); +test_valid_value('top', 'anchor(--foo top, calc(0.5 * anchor(--bar bottom)))'); test_valid_value('top', 'min(100px, 10%, anchor(--foo top), anchor(--bar bottom))');