Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support new CSS color() strings #62

Merged
merged 2 commits into from
Dec 31, 2023
Merged

Conversation

KaliedaRik
Copy link
Owner

The CSS Color Module Level 4 spec introduced new CSS color strings for predefined color spaces such as:

  • color(srgb 0 0 0 / 1)
  • color(srgb-linear 0 0 0 / 1)
  • color(display-p3 0 0 0 / 1)
  • color(a98-rgb 0 0 0 / 1)
  • color(prophoto-rgb 0 0 0 / 1)
  • color(rec2020 0 0 0 / 1)
  • color(xyz 0 0 0 / 1)
  • color(xyz-d50 0 0 0 / 1)
  • color(xyz-d65 0 0 0 / 1)

This PR checks that the SC color system can interpret these strings as color inputs, making changes as required. It also adds a new demo - canvas-057 - to test output from these inputs.

Screenshot 2023-12-31 at 18 29 12

@KaliedaRik KaliedaRik merged commit afa6ea6 into v8-dev Dec 31, 2023
@KaliedaRik KaliedaRik deleted the support-new-css-color-strings branch December 31, 2023 18:39
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.

None yet

1 participant