Open
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
31.1.0
What operating system(s) are you using?
Windows
Operating System Version
10.0.19042
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
When creating a WebContentsView and setting the bounds, the html (dom) should reflect those bounds.
Actual Behavior
Creating a WebContentsView and setting bounds will have no effect until it is shown.
This prevents preloading content that relies on the bounds
Testcase Gist URL
https://gist.github.com/t57ser/b4711fff7527d72573af1f89989e9853
Additional Information
In the devtools you can see the bounds of the body, it will apply the correct bounds once the WebContentsView becomes visible