Skip to content

Black about:blank page for dark themed OSes #10466

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

Open
Kazimierzw-Google opened this issue Jun 18, 2024 · 4 comments
Open

Black about:blank page for dark themed OSes #10466

Kazimierzw-Google opened this issue Jun 18, 2024 · 4 comments
Labels

Comments

@Kazimierzw-Google
Copy link

  • Reason for change:

    • enhanced UX for users having dark themed OS,
    • potential power efficiency gain.
  • Relevant spec section


CC: @wojtas-marcin

@eligrey
Copy link
Member

eligrey commented Jun 18, 2024

Since you mentioned it, should power efficiency be considered here? E.g. Browsers could only use a black background for about:blank if the system is in dark mode AND the display device that the page is being presented on is self-emissive.

Displaying black takes more energy on LCD devices that don't support local dimming.

@Kazimierzw-Google
Copy link
Author

Interesting point, Eli!

How about we keep both change reasons, discuss the validity of the request and then decide holistically taking into account all arguments?

@Kazimierzw-Google
Copy link
Author

Anyone?

@tabatkins
Copy link
Member

You linked to the general default CSS for pages, particularly the idea that the canvas background is white by default, but your issue title is specifically about about:blank. Did you mean to scope your request to just that particular URL? Or were you intending to talk about pages in general?

If the latter, this is already covered by the Color Adjust spec - in dark mode, the canvas should be dark-colored as well. (The spec is intentionally vague about what precisely this means, but in practice it's that the canvas is painted with the canvas color, which is white in light mode and black in dark mode. The color property is more explicit that its initial value matches the canvastext color, which is the inverse.)

@fantasai fantasai added the css-color-adjust-1 Current Work label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants