-
Notifications
You must be signed in to change notification settings - Fork 715
[css-contain-2] Stop monkey-patching the HTML spec. #12105
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
base: main
Are you sure you want to change the base?
Conversation
The new text looks good to me. One unfortunate consequence is that we always run the style&layout steps even if we know we have pending relevance changes which as far as I can tell pretty much guarantee that we'll have to run style&layout again. Perhaps this is in the realm of browsers being able to optimize this, but it's unclear if there's interactions with other features that do require the initial style&layout before relevant state changes |
I think that's necessary tho, right? Otherwise whether you see the effect of something like:
On this frame or the next depends on whether something has updated style and layout in the interim, right? |
This exports an "update content relevancy for a document" algorithm that HTML can call at the right time.