Closed Bug 1947061 Opened 9 months ago Closed 8 months ago

[web-animations] commitStyles always writes the end state of the animation

Categories

(Core :: DOM: Animation, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: canalun, Assigned: canalun)

References

()

Details

Attachments

(3 files, 1 obsolete file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36

Steps to reproduce:

change the default behavior of commitStyles based on the discussion; https://github.com/w3c/csswg-drafts/issues/5394

Optionally, a longer description of the change.

Assignee: nobody → i.am.kanaru.sato
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

The Bugbug bot thinks this bug should belong to the 'Core::CSS Transitions and Animations' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → CSS Transitions and Animations
Product: Firefox → Core
Component: CSS Transitions and Animations → DOM: Animation

Re-order the existing tests into a logical order.
ref: https://phabricator.services.mozilla.com/D237510

Add new cases for changing the default bahavior of commitStyles to
endpoint-inclusive. These cases are now expected to fail because the
spec change is under discussion yet.

Attachment #9466464 - Attachment is obsolete: true
Attachment #9466463 - Attachment is obsolete: true
Attachment #9466464 - Attachment is obsolete: false

Hi canalun, thanks I think there's just one last nit to address. Have you pushed these patches to try server yet?

When you are ready, can you push to try and run the WPT tests, mochitests, and crashtests on Linux? Hiro can probably give you a better idea of which jobs to choose than I can.

ok I will ask Hiro, thanks :)

Now, one of the cases in the second patch still fails...! It's the one we decided to add at the end, "Commits the intermediate value of an animation up to the middle of the stack".
I will look into it and so need a bit more time.

and of course I'll fix the last nit, thanks.

I just started working on the spec PR for this and I realized we also need to take care of the case when the animation is playing backwards. We will need to add tests for that case too.

Pushed by hikezoe.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/22c9942e6d31 re-order the existing cases of commitStyles. r=birtles https://hg.mozilla.org/integration/autoland/rev/8a5bf1a96c03 add new cases for commitStyles behavior change. r=birtles https://hg.mozilla.org/integration/autoland/rev/28d832f98f08 change commitStyles default behavior. r=birtles,hiro
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/51843 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
Blocks: 1958528
Upstream PR merged by moz-wptsync-bot
QA Whiteboard: [qa-triage-done-c140/b139]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: