We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://html.spec.whatwg.org/multipage/canvas.html#serialisation-of-a-color doesn't seem to take into account the new CSS color functions, color spaces, and such.
<!DOCTYPE html> <canvas></canvas> <script> var canvas = document.querySelector("canvas"); var ctx = canvas.getContext("2d"); ctx.strokeStyle = "color(srgb none 2 -1 / 0.5)"; document.body.textContent = ctx.strokeStyle; </script>
rgba(0, 255, 0, 0.5)
color(srgb none 2 -1 / 0.5)
Or if I specify lab(51.2345 -13.6271 16.2401):
lab(51.2345 -13.6271 16.2401)
#6a805d
These new colors are defined in https://drafts.csswg.org/css-color-4
@emilio @tiaanl What do you think about aligning with Blink/WebKit, to avoid losing precision?
The text was updated successfully, but these errors were encountered:
Duplicate of #8917
Sorry, something went wrong.
No branches or pull requests
What is the issue with the HTML Standard?
https://html.spec.whatwg.org/multipage/canvas.html#serialisation-of-a-color doesn't seem to take into account the new CSS color functions, color spaces, and such.
rgba(0, 255, 0, 0.5)
color(srgb none 2 -1 / 0.5)
Or if I specify
lab(51.2345 -13.6271 16.2401)
:#6a805d
lab(51.2345 -13.6271 16.2401)
These new colors are defined in https://drafts.csswg.org/css-color-4
@emilio @tiaanl What do you think about aligning with Blink/WebKit, to avoid losing precision?
The text was updated successfully, but these errors were encountered: