Skip to content

FF142 Relnote Animation.commitStyles no longer requires fill#40611

Merged
hamishwillee merged 2 commits intomdn:mainfrom
hamishwillee:ff142relnote_animation_commitstyles
Aug 8, 2025
Merged

FF142 Relnote Animation.commitStyles no longer requires fill#40611
hamishwillee merged 2 commits intomdn:mainfrom
hamishwillee:ff142relnote_animation_commitstyles

Conversation

@hamishwillee
Copy link
Copy Markdown
Collaborator

FF142 Animation/commitStyles() allows animations to capture the final styles without specifying a fill in latest spec - in https://bugzilla.mozilla.org/show_bug.cgi?id=1973203

This adds a release note.

Related docs work in #40482

@hamishwillee hamishwillee requested a review from a team as a code owner August 4, 2025 02:08
@hamishwillee hamishwillee requested review from dipikabh and removed request for a team August 4, 2025 02:08
@github-actions github-actions bot added Content:Firefox Content in the Mozilla/Firefox subtree size/xs [PR only] 0-5 LoC changed labels Aug 4, 2025
#### DOM

- The {{domxref("Selection.getComposedRanges()")}} method is now supported, allowing developers to accurately get selected text ranges across shadow DOM boundaries. In addition, the methods {{domxref("Selection.setBaseAndExtent()","setBaseAndExtent()")}}, {{domxref("Selection.collapse()","collapse()")}}, and {{domxref("Selection.extend()","extend()")}} of the {{domxref("Selection")}} interface have been modified to accept nodes inside a shadow root. ([Firefox bug 1903870](https://bugzil.la/1903870)).
- The {{domxref("Animation.commitStyles()")}} method no longer requires that [`fill`](/en-US/docs/Web/API/KeyframeEffect/KeyframeEffect#fill) is set on an animation in order to commit the computed styles after the animation has finished. Note that until more browsers support this change, code should continue to set `fill`. ([Firefox bug 19197320303870](https://bugzil.la/1973203)).
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, note the bit "Note that until more browsers support this change, code should continue to set fill.".
I wouldn't normally write this, but you can't feature check for this change, so it won't be useful until most browsers support this.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 4, 2025

Preview URLs

External URLs (1)

URL: /en-US/docs/Mozilla/Firefox/Releases/142
Title: Firefox 142 for developers

(comment last updated: 2025-08-08 01:13:28)

Copy link
Copy Markdown
Contributor

@dipikabh dipikabh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Comment thread files/en-us/mozilla/firefox/releases/142/index.md Outdated
Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org>
@hamishwillee hamishwillee merged commit 5287e96 into mdn:main Aug 8, 2025
8 checks passed
@hamishwillee hamishwillee deleted the ff142relnote_animation_commitstyles branch August 8, 2025 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Firefox Content in the Mozilla/Firefox subtree size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants