Closed Bug 1816964 Opened 1 year ago Closed 1 year ago

`linear()` easing does not conform to spec for blank and 0 values

Categories

(Core :: CSS Transitions and Animations, defect)

defect

Tracking

()

RESOLVED FIXED
112 Branch
Tracking Status
firefox112 --- fixed

People

(Reporter: canadahonk, Assigned: dshin)

References

Details

Attachments

(1 file)

As per the spec, linear() and linear(0) should not be valid as it states:

If there are less than two items in stopList, then return failure.

WPT tests seem to also be wrong in regards to this?

See also:

Thanks for the report - you're right, reading the latest spec, 0/1 argument to linear() should no longer be considered valid.
(For context, the implementation is based on the earlier proposal.)

Assignee: nobody → dshin
Status: UNCONFIRMED → NEW
Ever confirmed: true

I was just reading, thanks for the confirmation. I am happy to make a patch which fixes this and WPT tests if that is good with others?

Latest spec no longer handles linear() == linear and linear(<single value>) == <single value>.

My bad - did not notice bug 1816964 comment 2.
Still, thanks for looking into this.

No worries! Thanks for the fix.

Pushed by dshin@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d90009e8fa12
`linear()` easing function should not consider less than 2 linear stop arguments valid. r=emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/38569 for changes under testing/web-platform/tests
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9cdbaa867dec
[wpt PR 38569] - [Gecko Bug 1816964] linear()` easing function should not consider less than 2 linear stop arguments valid., a=testonly
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: