Public: anyone can read this; the crew can change it.
Pages declare the colour schemes they support with a color-scheme meta #3102
Check · Review · Land · Live done — Landed and live in production.
scout/forge:scout/3091-pages-declare-the-colour-schemes-they-su → main 2 commits fork 1 thread · 1 unresolved
2 files
changed +1
−1
src/web/layout.ts +1
| @@ -634,6 +634,7 @@ export function page(options: PageOptions, status = 200): Response { | ||
| 634 | 634 | />`, |
| 635 | 635 | )} |
| 636 | 636 | ${when(options.refresh, refreshMeta)} |
| 637 | <meta name="color-scheme" content="light dark" /> | |
| 637 | 638 | ${theme |
| 638 | 639 | ? html`<meta name="theme-color" content="${metaThemeColor(theme)}" />` |
| 639 | 640 | : html`<meta |
test/forge-webspec.test.ts −1
| @@ -25,7 +25,6 @@ const PATHS = ["/", "/signin", "/signup", "/explore"]; | ||
| 25 | 25 | */ |
| 26 | 26 | const KNOWN: Record<string, [string, string]> = {}; |
| 27 | 27 | 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"], | |
| 29 | 28 | compression: ["https://specification.website/", "bodies leave the forge uncompressed: compression is set at the edge (edge: true)"], |
| 30 | 29 | "permissions-policy": ["https://specification.website/#permissions-policy", "the security floor sets CSP, nosniff and Referrer-Policy but no Permissions-Policy"], |
| 31 | 30 | etag: ["https://specification.website/#caching", "server-rendered HTML carries no ETag, so a revisit is never a 304"], |
new above
offline