Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Hole in CSS rendering model: initial and transitional page paints #3688
Browsers currently paint a window with a default background before/while loading web pages, CSS, and other resources. This happens both upon opening a new window with a URL (initial paint), and when navigating from one page to another (transitional paint), and is currently unspecified by the CSS rendering model.
This hole in the CSS rendering model results in proposals to use meta tags instead, such as viewport, and potentially for a dark mode.
Rather than awkwardly punting this area of rendering behavior(s) to an HTML meta tag or other non-CSS solution, CSS should define how browsers should (or at least may) render initial and transitional paints, preferably with a feature that permits author control, especially (at least) between pages of the same origin.
Prior related work:
Anything specified in the CSS rendering model for handling initial and transitional page paints should reference the HTML specification and hook into the DOM and states described in: HTML Standard: 7.7 Session history and navigation.
Labels: Needs Thought, unknown/future spec
(Originally published at: http://tantek.com/2019/058/b1/hole-css-initial-transitional-page-paints)