-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Interop issue with canvas globalCompositeOperation "normal" value #7637
Comments
This largely consists of defining new underlying concepts to back getters and setters, and make better use of existing ones. It also makes the setter algorithm for globalCompositeOperation more precise, by clearly referencing the <composite-mode> and <blend-mode> properties instead of saying "the possible values are those defined in Compositing and Blending". (This did uncover an interop issue which we will track in #7637.) Finally this renames the "current composition operator" to "current compositing and blending operator" (as per the Compositing and Blending spec's wording) and fixing the uses of "composition" vs "compositing".
This largely consists of defining new underlying concepts to back getters and setters, and make better use of existing ones. It also makes the setter algorithm for globalCompositeOperation more precise, by clearly referencing the <composite-mode> and <blend-mode> properties instead of saying "the possible values are those defined in Compositing and Blending". (This did uncover an interop issue which we will track in whatwg#7637.) Finally this renames the "current composition operator" to "current compositing and blending operator" (as per the Compositing and Blending spec's wording) and fixing the uses of "composition" vs "compositing".
I think it would really be better to have an explicit list for this. |
Safari does support these two modes on CSS and canvas, I believe Chrome is in the processs of adding I guess the question is, is it expected that the canvas should have a different list than CSS at some point? If only |
Generally we've tried to align 2D canvas with CSS (and SVG). So that is what we should do here as well. I'm not sure how much I trust upstream to do a good job of also updating the 2D canvas tests though whenever they add new values. Not sure how to best approach that. |
I think matching to CSS is the right thing to do. |
@fserb any input on what should be done to |
Good point. I actually found this issue while working on the implementation of "clear". https://bugzil.la/1816775 |
At this point I've added |
Spinning off from #7599 (comment)
Before #7599, the spec said
which is very unhelpful. In that PR, @Kaiido made it more precise:
However one of the values for <blend-mode>, namely
"normal"
, is rather special. @Kaiido says:/cc @whatwg/canvas to help us figure this out.
The text was updated successfully, but these errors were encountered: