-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init documentation for cancelAnimationFrame()
and requestAnimationFrame()
of DedicatedWorkerGlobalScope
interface
#30880
Conversation
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md
Outdated
Show resolved
Hide resolved
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a few questions here, and I'll need to do a second pass once all is fixed, but this is close to be mergeable.
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md
Show resolved
Hide resolved
Co-authored-by: Jean-Yves Perrier <[email protected]>
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few last grammar and typo fixes, and this is ready to be merged. Well done!
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Jean-Yves Perrier <[email protected]>
files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md
Outdated
Show resolved
Hide resolved
files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md
Outdated
Show resolved
Hide resolved
…frame/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…nframe/index.md Co-authored-by: skyclouds2001 <[email protected]>
…nframe/index.md Co-authored-by: skyclouds2001 <[email protected]>
…nframe/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
…Frame()` of `DedicatedWorkerGlobalScope` interface (mdn#30880) * init * update example * update list * style pretty * update additional info * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * remove extra comment * update see also section * Apply suggestions from code review * update * Apply suggestions from code review Co-authored-by: Jean-Yves Perrier <[email protected]> * update * update worker * better reflect confuse * update * update content * Apply suggestions from code review * Apply suggestions from code review * Apply suggestions from code review Co-authored-by: Jean-Yves Perrier <[email protected]> * Update files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md Co-authored-by: skyclouds2001 <[email protected]> * Update files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md Co-authored-by: skyclouds2001 <[email protected]> * Update files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md * Update files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md * Update files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md * Update files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md * Update files/en-us/web/api/dedicatedworkerglobalscope/cancelanimationframe/index.md * Update files/en-us/web/api/dedicatedworkerglobalscope/requestanimationframe/index.md --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Jean-Yves Perrier <[email protected]>
Description
see https://developer.mozilla.org/en-US/docs/Web/API/Window/requestAnimationFrame and https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelAnimationFrame
reference to https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#animation-frames
using some content from
Window.requestAnimationFrame()
andWindow.cancelAnimationFrame()
and the example from the specificationMotivation
Additional details
Relates to #1519
Related issues and pull requests