-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
status: backlogIssue is ready and we can work on itIssue is ready and we can work on ittype: feature request
Description
Describe the bug
Window flashes a white background before rendering app content on macOS Big Sur.
The css for the index.html is:
html, body {
width: 100%; height: 100%;
background: rgb(231, 232, 232);
}
@media (prefers-color-scheme: dark) {
html, body {
background: rgb(37, 38, 40);
}
}To Reproduce
Steps to reproduce the behavior:
- Create an index.html with
<style>html, body { background: black; }</style> - Run the app (dev, or dist bundle)
- Screen will flash a white background before rendering the content.
Expected behavior
The main window should wait for the content to load, or it should apply the page's background color on open.
Screenshots
default.mp4
Platform and Versions (please complete the following information):
OS: Mac OS, version 11.2.3 X64
Node: 15.13.0
NPM: 7.7.6
Yarn: 1.22.10
Rustc: 1.51.0
Additional context
This is running the app with the default values (no transparent window mode). When using transparent window mode, it doesn't flash, but the window loses all shadows and borders until it is resized.
transparent.mp4
arwinneil, icewind, jerrygreen, ZaneH, flawiddsouza and 28 moreX-49 and dionysuzx
Metadata
Metadata
Assignees
Labels
status: backlogIssue is ready and we can work on itIssue is ready and we can work on ittype: feature request
Type
Projects
Status
📬Proposal