-
Notifications
You must be signed in to change notification settings - Fork 746
Closed
Labels
Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.Commenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-color-5Color modificationColor modification
Description
With two implementations on stable channels (Safari 16.4+, Chrome 119+) for the relative color syntax, I’m trying to make sense of the incompatible results I’m seeing on my test page, in order to contribute appropriate web platform tests:
- The only version that works in Safari is
rgb(from #ff6600 calc(100% - r) calc(100% - g) calc(100% - b))
(based, if I remember correctly, on a previous version of the spec?). Should the mixing of<percentage>
and<number>
incalc()
here still produce a valid color? - Am I right to understand that the
<number>
forrgb()
channel keywords is in the range[0,255]
and not[0,1]
and that Chrome supportingrgb(from #ff6600 calc(1 - r) calc(1 - g) calc(1 - b))
rather thanrgb(from #ff6600 calc(255 - r) calc(255 - g) calc(255 - b))
is incorrect?
Metadata
Metadata
Assignees
Labels
Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.Commenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.css-color-5Color modificationColor modification