- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Thu, 24 Mar 2022 14:52:46 +0000
- To: public-css-archive@w3.org
You are certainly right so I let's focus on serialization as a component of a specified value. ```js const authorSpecifiedColor = 'hsl(0, 100%, 50%)' element.style.color = authorSpecifiedColor const serialization = element.style.color console.log(serialization) ``` The output in Chrome/Firefox is `rgb(255, 0, 0)` but it should be `hsl(0, 100%, 50%)`. [**Specification**](https://drafts.csswg.org/cssom-1/#serializing-css-values): 1. *If `<color>` is a component of a specified value, then return the color as follows*: **yes** 2. *If the color was explicitly specified by the author*: **yes** 3. *then return the original, author specified color value*: `hsl(0, 100%, 50%)` -- GitHub Notification of comment by cdoublev Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1004#issuecomment-1077715540 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 24 March 2022 14:52:48 UTC