Page MenuHomePhabricator

Bug 2019537 - Fix animations of custom properties with guaranteed-invalid value. r?#style
ClosedPublic

Authored by Oriol on Feb 26 2026, 11:26 AM.
Referenced Files
Unknown Object (File)
Mon, Apr 13, 7:25 AM
Unknown Object (File)
Fri, Apr 10, 1:42 PM
Unknown Object (File)
Fri, Apr 10, 1:55 AM
Unknown Object (File)
Thu, Apr 9, 2:01 PM
Unknown Object (File)
Sun, Apr 5, 9:05 AM
Unknown Object (File)
Sat, Apr 4, 2:04 PM
Unknown Object (File)
Sat, Apr 4, 9:29 AM
Unknown Object (File)
Sat, Apr 4, 6:43 AM

Details

Summary

The main goal of this patch is making custom properties animatable in
Servo. However, it also fixes the Gecko problem that custom properties
set to the guaranteed-invalid value weren't animating correctly.

Diff Detail

Event Timeline

phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.
emilio added a project: testing-approved.
emilio added a subscriber: emilio.

Looks good!

This revision is now accepted and ready to land.Feb 26 2026, 11:38 AM
Oriol retitled this revision from Bug 2019537 - Fix animations of custom properties with guaranteed-invalid value. r?#style to Bug 2019537 - Make custom properties animatable in Servo, and fix guaranteed-invalid cases in Gecko. r?#style.Feb 26 2026, 11:50 AM
This revision is now accepted and ready to land.Feb 26 2026, 1:41 PM
Oriol retitled this revision from Bug 2019537 - Make custom properties animatable in Servo, and fix guaranteed-invalid cases in Gecko. r?#style to Bug 2019537 - Fix animations of custom properties with guaranteed-invalid value. r?#style.
Oriol requested review of this revision.Feb 26 2026, 5:42 PM

Please check the new changes. Hopefully try won't miss anything this time: https://treeherder.mozilla.org/jobs?repo=try&landoCommitID=182288

Now I'm correctly handling initial, unset and inherit. For revert and revert-layer I'm adding a comment like in https://searchfox.org/firefox-main/rev/3c52c9c886f7b0423001cef86abfafcf97f2b90a/servo/components/style/properties/helpers/animated_properties.mako.rs#319-325
However, here I can't make them behave as unset because that would break css/css-cascade/revert-layer-011.html.
Instead I'm reverting from_declaration() to return an Option again.

This revision is now accepted and ready to land.Feb 26 2026, 6:29 PM