From aee8efe87a4a9aeca6d2566f677ac5e6e9840eb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Fri, 15 Oct 2021 15:13:51 +0200 Subject: [PATCH] [css-color-adjust] Define color-scheme: normal to be hookable by HTML. This allows HTML to "set" the used value of the color-scheme property, via a meta tag. Part of https://github.com/whatwg/html/issues/7213 Closes https://github.com/w3c/csswg-drafts/issues/6726 --- css-color-adjust-1/Overview.bs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/css-color-adjust-1/Overview.bs b/css-color-adjust-1/Overview.bs index 9e28489be33..8d5f39893a7 100644 --- a/css-color-adjust-1/Overview.bs +++ b/css-color-adjust-1/Overview.bs @@ -159,15 +159,20 @@ Opting Into a Preferred Color Scheme: the 'color-scheme' property {#color-scheme user agents cannot automatically adapt the colors used in elements under their control, as it might cause unreadable color contrast with the surrounding page. + Host languages can define the page's supported color schemes, + a list of [=color schemes=] supported by default for all elements on that page. + + Note: [[HTML]] specifies a + color-scheme + <{meta}> tag which can be used to set the [=page's supported color schemes=]. + Values are defined as follows:
: normal :: - Indicates that the element doesn't support [=color schemes=] at all, - and so the element should be rendered with the browser's default [=color scheme=]. - - (This is typically, tho not always, similar to ''light''.) + Indicates that the element supports the [=page's supported color schemes=], + if they are set, or that it supports no [=color schemes=] at all otherwise. : light :: @@ -317,11 +322,6 @@ Opting Into a Preferred Color Scheme: the 'color-scheme' property {#color-scheme the rest of the page will respect the user's preference. - Note: [[HTML]] specifies a - color-scheme - <{meta}> tag which can be used to set the color-scheme on the root element as - a [[css-cascade-4#preshint|non-CSS presentational hint]]. - Note: Repeating a keyword, such as ''color-scheme: light light'', is valid but has no additional effect beyond what the first instance of the keyword provides.