Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upIntroduce a fast path for restyling when the style attribute is changed #9860
Comments
|
Most of the CSS used in browser.html is applied via I would very much like to see if this could improve the performance of our animations. See #10050 Bumping this to bhtml/P2 |
|
@pcwalton if you think this is not going to happen by June or the benefit is not worth the effort just yet, feel free to remove the P2 flag. |
|
Just to make sure I'm understanding this right, the idea is basically to avoid doing the dom traversal, not the entirety of reflow? Or is it even more fine-grained than that? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The only things that can override the
<style>attribute are user and author!importantrules, I believe. Let's introduce a fast path that checks to see whether!importantrules apply to rules that changed and skip the cascade, just as we do for CSS transitions.Note that I believe our CSS transitions are not spec compliant because we need to perform that check also.