Re: [csswg-drafts] [css-color-hdr-1] Clarify parsing and serialization of `hdr-color()` (#13597)

> 1. What should happen if the two headroom values are the same? Should the function be invalid?

Fair question and I don't know. I think I would prefer a defined behavior when they are the same, rather than an error or failure to parse.



> 2\. In `color-hdr(0 xyz-d65 1.2 0 0, xyz-d65 1.2 0 0)`, are they the same value?

That is invalid syntax because neither of the parameters is a color value and because the headroom follows, rather than preceding, the color to which it applies. Do you mean

```css
color-hdr(
  color(xyz-d65 1.2 0 0) 0, 
  color(xyz-d65 1.2 0 0) 0
)
```

or 

```css
color-hdr(
  color(xyz-d65 1.2 0 0) 0, 
  color(xyz-d65 1.2 0 0)
)
```
(which would be invalid)?


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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 5 March 2026 15:20:49 UTC