Skip to content

Commit

Permalink
Part 6 - Adjust test expectations.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dshin-moz authored and moz-wptsync-bot committed Nov 14, 2024
1 parent f6bc646 commit 6ce7e0b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions css/css-anchor-position/anchor-parse-valid.html
Original file line number Diff line number Diff line change
Expand Up @@ -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))');
</script>

0 comments on commit 6ce7e0b

Please sign in to comment.