Skip to content

Add relative color syntax tests for the color() function#1993

Merged
nex3 merged 1 commit intofeature.color-4from
relative-color
May 16, 2024
Merged

Add relative color syntax tests for the color() function#1993
nex3 merged 1 commit intofeature.color-4from
relative-color

Conversation

@nex3
Copy link
Contributor

@nex3 nex3 commented May 10, 2024

No description provided.

@nex3 nex3 requested a review from Goodwine May 10, 2024 21:36

<===> calc/alpha/output.css
a {
b: color(from #aaa srgb calc(l + 0.2) a b/25%);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is calc() not evaluated to 1.2 because it's considered to be a string in a slash-separated list?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

calc() isn't evaluated to 1.2 because the first character is U+006C LATIN SMALL LETTER L and not U+0031 DIGIT ONE 🙂.

@nex3 nex3 merged commit 12fabe2 into feature.color-4 May 16, 2024
@nex3 nex3 deleted the relative-color branch May 16, 2024 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants