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
clientWidth may not force layout when style has changed #31195
Labels
A-content/script
Related to the script thread
A-layout/2020
https://github.com/servo/servo/wiki/Layout-2020
Comments
Loirooriol
added
the
A-layout/2020
https://github.com/servo/servo/wiki/Layout-2020
label
Jan 26, 2024
3 tasks
There appears to be some caching, which I guess should be invalidated in that case servo/components/script/dom/element.rs Line 3348 in 0916534
A good place to investigate invalidated that cache is I think:
|
Loirooriol
added a commit
to Loirooriol/servo
that referenced
this issue
Jan 29, 2024
Fixes servo#31195: ```js element.style.width = "5px"; element.clientWidth; // 5 element.style.width = "15px"; element.clientWidth; // Was 5, now 15 ```
4 tasks
Loirooriol
added a commit
to Loirooriol/servo
that referenced
this issue
Jan 29, 2024
Fixes servo#31195: ```js element.style.width = "5px"; element.clientWidth; // 5 element.style.width = "15px"; element.clientWidth; // Was 5, now 15 ```
github-merge-queue bot
pushed a commit
that referenced
this issue
Jan 29, 2024
Fixes #31195: ```js element.style.width = "5px"; element.clientWidth; // 5 element.style.width = "15px"; element.clientWidth; // Was 5, now 15 ```
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-content/script
Related to the script thread
A-layout/2020
https://github.com/servo/servo/wiki/Layout-2020
Expected:
Actual:
The text was updated successfully, but these errors were encountered: