W3C home > Mailing lists > Public > public-css-archive@w3.org > October 2020

Re: [csswg-drafts] [CSS-COLOR-4] Security/Privacy: Incognito mode (#5553)

From: Chris Lilley via GitHub <sysbot+gh@w3.org>
Date: Mon, 05 Oct 2020 13:14:14 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-703623537-1601903652-sysbot+gh@w3.org>
> In order to read the color from the screen after using a color keyword, something like the following could be employed: https://jsfiddle.net/fcn9jk3z/

Thanks for the example. That **doesn't** read the color from the _screen_. It reads the _computed value_ from the DOM. CSS has the concepts of [specified](), [computed]() and [used]() values.

CSS Color 4 does not yet define the computed value for the `color()` function.
However, the computed value for earlier syntactic forms is defined, and I expect the value for the newer forms to be similar. For example, the computed value for the color `#17F` (#1177FF) is the string `rgb(17, 119, 255)`. So I would expect the computed value of `color(prophoto-rgb 0.4835 0.9167 0.2188)` to be the string `color(prophoto-rgb 0.4835 0.9167 0.2188)` and the computed value of `color(--mynamed "Deep Pink")` to be `color(--mynamed "Deep Pink")`, not the Lab values read from the Deep Pink entry in the color profile.

-- 
GitHub Notification of comment by svgeesus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5553#issuecomment-703623537 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 5 October 2020 13:14:16 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:20 UTC