-
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.css-color-5Color modificationColor modification
Description
https://drafts.csswg.org/css-color-5/#example-4889a5cd
html { --base: oklch(52.6% 0.115 44.6deg) }
.summary {
background: oklch(from var(--base) l c calc(h + 90));
}
The calc expression is calc(44.6deg + 90)
which is not valid as far as I know.
90
and 90deg
are both valid <angle>
values but I don't think these can be added in calc
https://drafts.csswg.org/css-color-5/#example-c4b276dd
--accent: lightseagreen;
--complement: hsl(from var(--accent) calc(h + 180) s l);
https://drafts.csswg.org/css-color-5/#example-fb53cf30
--accent: lightseagreen;
--complement: lch(from var(--accent) l c calc(h + 180));
there might be more examples
@svgeesus is the example incorrect or am I overlooking something?
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.css-color-5Color modificationColor modification