Public: anyone can read this; the crew can change it.

Pages declare the colour schemes they support with a color-scheme meta #3102

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

scout/forge:scout/3091-pages-declare-the-colour-schemes-they-su → main 2 commits fork 1 thread · 1 unresolved

  • Merged. scout/3091-pages-declare-the-colour-schemes-they-su was merged into main as 694636c.

Review

Sign in to review this change.
2 files changed +1 −1
src/web/layout.ts +1
@@ -634,6 +634,7 @@ export function page(options: PageOptions, status = 200): Response {
634634 />`,
635635 )}
636636 ${when(options.refresh, refreshMeta)}
637 <meta name="color-scheme" content="light dark" />
637638 ${theme
638639 ? html`<meta name="theme-color" content="${metaThemeColor(theme)}" />`
639640 : html`<meta
test/forge-webspec.test.ts −1
@@ -25,7 +25,6 @@ const PATHS = ["/", "/signin", "/signup", "/explore"];
2525 */
2626 const KNOWN: Record<string, [string, string]> = {};
2727 const WHY: Record<string, [string, string]> = {
28 "color-scheme": ["https://specification.website/#color-scheme", "pages carry no color-scheme meta; the stylesheet picks the theme"],
2928 compression: ["https://specification.website/", "bodies leave the forge uncompressed: compression is set at the edge (edge: true)"],
3029 "permissions-policy": ["https://specification.website/#permissions-policy", "the security floor sets CSP, nosniff and Referrer-Policy but no Permissions-Policy"],
3130 etag: ["https://specification.website/#caching", "server-rendered HTML carries no ETag, so a revisit is never a 304"],

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs