P1a: Element.animate() — Web Animations API Fake #78
Labels
No labels
bug
docs
feature
housekeeping
html-spec
performance
react-compat
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
glow-all/true-headless-browser#78
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
P1a:
Element.animate()— Web Animations APIPriority: HIGH
Betrifft: youtube.com, alle Polymer/Lit-Seiten
Aufwand: ~4h
Problembeschreibung
YouTube's Polymer-Framework nutzt
element.animate()für UI-Animationen.Element.animate()ist nicht implementiert → TypeError → App-Features deaktiviert.Browser-Spec:
element.animate(keyframes, options)erstellt eineAnimation-Instanz.Lösung: Minimaler Fake
Kein echtes Rendering — die Animation finished sofort (synchron).
Akzeptanzkriterien
element.animate(...)wirft keinen TypeError.playState,.finished,.cancel().finishedist ein Promise das sofort resolvedBetroffene Dateien
src/fakes/animations.tssrc/pages/page.tstests/unit/sprint17-animations.test.ts✅ Bereits implementiert — Element.animate() + AnimationStub
Fundort:
src/fakes/animations.ts(NEU) +src/pages/page.ts:281-312AnimationStub:finishedPromise resolved sofortplayState = 'finished'(kein echtes Rendering)cancel(),play(),pause(),reverse()— alle noopaddEventListener,dispatchEvent)Commit:
eca1765