You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example on MDN works on both Chrome and Safari exactly the same, but I can confirm your code renders differently on both browsers.
(Top: Chrome, bottom: Safari)
Once I take away the ctx.globalCompositeOperation = "destination-in"; line, however, both browsers render identically.
I don't know how we would track this in BCD, but this isn't an issue that globalAlpha isn't supported. In the meantime, I'd recommend reporting the bug to WebKit.
What type of issue is this?
Browser bug (a bug with a feature that may impact site compatibility)
What information was incorrect, unhelpful, or incomplete?
<style> #canvas { border: 1px solid black; } </style>What browsers does this problem apply to, if applicable?
Safari
What did you expect to see?
The transparency of image doesn't work on safari
Did you test this? If so, how?
Yes, deployed my code and show it on safari
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
No response
Do you have anything more you want to share?
I am not sure exact safari version.
MDN URL
https://developer.mozilla.org/zh-CN/docs/Web/API/CanvasRenderingContext2D/globalAlpha
MDN metadata
MDN page report details
api.CanvasRenderingContext2D.globalAlpha
The text was updated successfully, but these errors were encountered: