-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Let CSS Color handle CSS <color> value parsing #10175
Conversation
Our definition had issues such as not resolving currentcolor correctly when used as part of CSS color functions. Fixes #9940.
@Loirooriol do you know if this is tested? Is any browser non-compliant? |
There is web-platform-tests/wpt@cf3bea4, e.g. https://wpt.fyi/results/html/canvas/element/fill-and-stroke-styles/2d.fillStyle.colormix.currentcolor.html?label=master&label=experimental&product=chrome&product=edge&product=firefox&product=safari&product=servo WebKit rejects |
Thank you! @domenic any objection to treating this as an obvious bug fix? |
I notice that shadowColor uses some old attribute syntax which makes the use of the parsing algo a bit odd (potentially setting the color to failure, before pretending nothing did happen). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@domenic any objection to treating this as an obvious bug fix?
I guess it doesn't seem necessary. If Blink already implements this and you're happy to speak for WebKit, and we have tests... might as well just check all the boxes.
@Kaiido I meant to reply before closing this. It seems worthwhile updating those getter/setters, yes. |
Our definition had issues such as not resolving currentcolor correctly when used as part of CSS color functions.
Fixes #9940.
(See WHATWG Working Mode: Changes for more details.)
/canvas.html ( diff )
/infrastructure.html ( diff )
/semantics.html ( diff )