Skip to content
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

Fire toggle events using microtasks #901

Closed
josepharhar opened this issue Oct 6, 2023 · 1 comment
Closed

Fire toggle events using microtasks #901

josepharhar opened this issue Oct 6, 2023 · 1 comment

Comments

@josepharhar
Copy link

Request for Mozilla Position on an Emerging Web Specification

Other information

The toggle events for the popover attribute and the details element, as well as the close event for dialog elements, currently post a task to the DOM manipulation task source to fire these events asynchronously. This means that the event could fire before or after the next render, which could lead to flaky rendering for one frame. By using microtasks instead, the event will always fire before the next render. This was suggested in this HTML spec issue: whatwg/html#9046

@smaug----
Copy link
Collaborator

I did comment already in the spec issue and this should be a good change whatwg/html#9046 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants