Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Gecko Bug 1786161] Support rect() function. #41169

Merged
merged 2 commits into from Jul 25, 2023
Merged

Conversation

moz-wptsync-bot
Copy link
Collaborator

Note that rect() computes to the equivalent inset() function as well.
i.e. Given rect(t r b l), the equivalent function is
inset(t calc(100% - r) calc(100% - b) l).

The implementation is straightforward, and we don't have to change
anything in cpp because it is always inset() when building the gfx::Path.

The tests for clip-path will be added in the following patch.

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

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1786161
gecko-commit: 014ccd272ac61c1a3ae3de1cbd28c021f0ffe4a0
gecko-reviewers: devtools-reviewers, emilio

Note that rect() computes to the equivalent inset() function as well.
i.e. Given `rect(t r b l)`, the equivalent function is
`inset(t calc(100% - r) calc(100% - b) l)`.

The implementation is straightforward, and we don't have to change
anything in cpp because it is always `inset()` when building the gfx::Path.

The tests for clip-path will be added in the following patch.

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

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1786161
gecko-commit: 014ccd272ac61c1a3ae3de1cbd28c021f0ffe4a0
gecko-reviewers: devtools-reviewers, emilio
Also, move the interpolation of xywh() into
clip-path-interpolation-xywh-rect.html.

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

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1786161
gecko-commit: fbce1db481cab432766eb9f5b0bc78c5453c3014
gecko-reviewers: emilio
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.

@moz-wptsync-bot moz-wptsync-bot merged commit 9a13f4b into master Jul 25, 2023
19 checks passed
@moz-wptsync-bot moz-wptsync-bot deleted the gecko/1786161 branch July 25, 2023 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants