Canvas and CanvasText system colors
- Category
- CSS
- Type
- New or changed feature
- Status
- Enabled by default (Chrome Enabled by default)
- Intent stage
- Evaluate readiness to ship
WPT details: Web-platform tests for the parsing and serialization of Canvas and CanvasText have been added (https://github.com/web-platform-tests/wpt/pull/19856). System colors are platform dependent, so web-platform tests for the calculation of Canvas and CanvasText were not added.
Summary
Canvas and CanvasText are system color keywords. Canvas maps to the existing Window system color keyword, and CanvasText maps to the existing WindowText system color keyword.
Motivation
Canvas and CanvasText have been added to the CSS Color Module Level 4 spec. Canvas and CanvasText replace the previously named Window and WindowText keywords and will give users the ability to customize their sites with the relevant foreground and background colors when in forced colors mode.
Standards & signals
- Specification: https://drafts.csswg.org/css-color-4/#css-system-colors
- Firefox: In development
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1015968#makechanges
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=canvas-and-canvastext-system-colors
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+Canvas%20and%20CanvasText%20system%20colors
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=Canvas%20and%20CanvasText%20system%20colors
- Baseline status: https://webstatus.dev/?q=Canvas%20and%20CanvasText%20system%20colors