- From: Jesse Stricker via GitHub <sysbot+gh@w3.org>
- Date: Fri, 13 Oct 2023 20:40:23 +0000
- To: public-css-archive@w3.org
jessestricker has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-color-4] Slightly incorrect sRGB inverse transfer function == The sRGB inverse transfer function, the one from the _non-linear to the linear_ sRGB values, is given in the CSS spec with a comparison that diverges from the sRGB standard. The CSS spec states: ```js if (abs < 0.04045) { cl = c / 12.92; } // ... ``` But in the _DIN EN 61966-2-1:2003-09_, which is the German version of the _EN 61966-2-1:2000 + A1:2003_ (“sRGB standard”), the comparison is stated using the less-than operator, so the sample code should be: ```js if (abs <= 0.04045) { // note the use of the less-than operator cl = c / 12.92; } // ... ``` Is this deviation from the sRGB standard intentional? Is it negligible? Or is the German version of the sRGB standard incorrect? The affected sections are: - [Section 10.2](https://drafts.csswg.org/css-color-4/#predefined-sRGB), in the code for the transfer function - [Section 17](https://drafts.csswg.org/css-color-4/#color-conversion-code), in `function lin_sRGB(RGB)` Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9467 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 13 October 2023 20:40:25 UTC