← Back to release summary

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

Ecosystem

View on chromestatus.com