Closed Bug 1884425 Opened 3 months ago Closed 2 months ago

[css-shapes-2] Support interpolation between shape() and path()

Categories

(Core :: CSS Transitions and Animations, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
relnote-firefox --- nightly+
firefox126 --- fixed

People

(Reporter: boris, Assigned: boris)

References

(Blocks 1 open bug, )

Details

Attachments

(2 files)

Per https://drafts.csswg.org/css-shapes-2/#interpolating-shape, we have to support the interpolation between shape() and path().

Component: CSS Parsing and Computation → CSS Transitions and Animations
Assignee: nobody → boris.chiou

Use this as a wrapper for path() and shape(), so it'd be easier to
specialize its Animate trait.

Basically, we implement Animate for PathOrShapeFunction manually
when either from or to value is path() function, and the other one
is shape() function.

Attachment #9392832 - Attachment description: Bug 1884425 - Introduce PathOrShapeFunciton typo. → Bug 1884425 - Introduce PathOrShapeFunciton for path() and shape().
Pushed by bchiou@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/92a8f9a2649b
Introduce PathOrShapeFunciton for path() and shape(). r=firefox-style-system-reviewers,zrhoffman
https://hg.mozilla.org/integration/autoland/rev/f166629708eb
Implement interpolation between path() and shape(). r=firefox-style-system-reviewers,zrhoffman
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/45416 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch

:boris could you consider nominating this for a release note? (Process info)
We could include it in the nightly release notes.

Flags: needinfo?(boris.chiou)
Upstream PR merged by moz-wptsync-bot

Release Note Request (optional, but appreciated)
[Why is this notable]: We support the interpolation between path() and shape(). This makes us easier to create CSS Animations for shape() together with path(), which has been used for years.
[Affects Firefox for Android]: Yes
[Suggested wording]: Support interpolation between path() function and shape() function.
[Links (documentation, blog post, etc)]:
https://drafts.csswg.org/css-shapes-2/#interpolating-shape

relnote-firefox: --- → ?
Flags: needinfo?(boris.chiou)

Thanks, added to the Fx126 nightly release notes, please allow 30 minutes for the site to update.
Keeping the relnote-firefox flag as ? to keep it on the radar for inclusion in the final Fx126 release notes.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: