Describe the bug
When EaseMotion animation classes (e.g. ease-fade-in, ease-slide-up) are applied to content inside an HTML <dialog> element, the animations play once on first open but do NOT re-trigger on subsequent showModal() calls.
Steps to Reproduce
- Create a
<dialog> with a child div using ease-fade-in
- Call
dialog.showModal() — animation plays –> close the dialog
- Call
dialog.showModal() again — animation does NOT replay
Expected Behavior
Animation should replay every time the dialog opens.
Suggested Fix
Document the @starting-style CSS workaround for modern browsers, and provide a JS snippet that removes and re-adds the animation class on dialog open.
Describe the bug
When EaseMotion animation classes (e.g.
ease-fade-in,ease-slide-up) are applied to content inside an HTML<dialog>element, the animations play once on first open but do NOT re-trigger on subsequentshowModal()calls.Steps to Reproduce
<dialog>with a child div usingease-fade-indialog.showModal()— animation plays –> close the dialogdialog.showModal()again — animation does NOT replayExpected Behavior
Animation should replay every time the dialog opens.
Suggested Fix
Document the
@starting-styleCSS workaround for modern browsers, and provide a JS snippet that removes and re-adds the animation class ondialog open.