-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Bug]: Gradient on text fill doesnt work on chrome 111 and above #8829
Comments
btw it happens on any older version of fabric as well |
@ebigtm Can you check this if it works for you?: #8168 (comment) |
@iocoker works like a charm! exactly what I was looking for thanks!!! |
@iocoker ok now i see theres a problem with the angles |
@ebigtm You're right, the angle is off. @ShaMan123 any pointers please ? Also forgot to add a Radial to the hack:
` |
We have a failing visual test that might be related. |
I read you triaged it to be a chrome bug. Is that correct? |
https://github.com/fabricjs/fabric.js/blob/master/test/visual/text.js#L212 I think that is the test |
@ShaMan123 yes only chrome bug and only on version 111 and 112 of chrome (edge works fine!) thanks! Will look into it |
Happy to see you back |
If both you guys want to help me with 2 clicks then enter the following link and add a thumbs up reaction to the description |
Thanks, done. I'll get a few colleagues to upvote for you tomorrow when I get to the office. |
I have a similar issue happening when i use an image to mask a text and use it as a background, works just fine on firefox, but not on chrome, has someone found the same problem or simillar ? the gradient pattern solution doesnt seem to work in this case. |
CheckList
Version
5.3.0
In What environments are you experiencing the problem?
Chrome
Node Version (if applicable)
None
Link To Reproduction
https://jsfiddle.net/EYBTM/ohqsj72b/14/
Steps To Reproduce
As you will see in the fiddle when openning on an updated chrome (checked on both mac and windows but not linux)
the text which should be on the black box is lacking, if opened on an older version of chrome or any other browser (even updated edge) the text appears
What i found is that if i disable GPU rasterization under
chrome://flags/#enable-gpu-rasterization
the issue will not happen
I was testing regular canvas on text and it appears fine:
https://jsfiddle.net/EYBTM/s957ge3y/1/
Expected Behavior
The text should appear with gradient
Actual Behavior
text is transparent
Error Message & Stack Trace
No response
The text was updated successfully, but these errors were encountered: