Skip to content

Conversation

@moz-wptsync-bot
Copy link
Collaborator

Min() or max() functions used in anchor() can be simplified, given that the
percentage basis is a size that cannot be negative.

In such cases, Firefox does the simplification, so that min(50%, 100%) gets
serialized as calc(50%).

This just modifies the test to expect either the originally-specified or the
simplified form in the affected cases.

(See also w3c/csswg-drafts#12131.)

Differential Revision: https://phabricator.services.mozilla.com/D277113

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=2006366
gecko-commit: a192fac33d879e7e44591f739c5f801902c6e994
gecko-reviewers: layout-reviewers, layout-anchor-positioning-reviewers, dshin, dholbert

…, y%) function within anchor(). Min() or max() functions used in anchor() can be simplified, given that the percentage basis is a size that cannot be negative. In such cases, Firefox does the simplification, so that min(50%, 100%) gets serialized as calc(50%). This just modifies the test to expect either the originally-specified or the simplified form in the affected cases. (See also w3c/csswg-drafts#12131.) Differential Revision: https://phabricator.services.mozilla.com/D277113 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=2006366 gecko-commit: a192fac33d879e7e44591f739c5f801902c6e994 gecko-reviewers: layout-reviewers, layout-anchor-positioning-reviewers, dshin, dholbert
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Firefox project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment