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)
Core
CSS Transitions and Animations
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:
Reporter | ||
Updated•1 year ago
|
Assignee | ||
Comment 1•1 year ago
|
||
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
Reporter | ||
Comment 2•1 year ago
|
||
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?
Assignee | ||
Comment 3•1 year ago
|
||
Latest spec no longer handles linear() == linear
and linear(<single value>) == <single value>
.
Assignee | ||
Comment 4•1 year ago
|
||
My bad - did not notice bug 1816964 comment 2.
Still, thanks for looking into this.
Reporter | ||
Comment 5•1 year ago
|
||
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
Comment 8•1 year ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 1 year ago
status-firefox112:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch
Upstream PR merged by jgraham
Comment 10•1 year ago
|
||
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
Comment 11•1 year ago
|
||
bugherder |
You need to log in
before you can comment on or make changes to this bug.
Description
•