.bg-clip-text is missing the box-decoration-break: clone property #3738
MarkPraschan
started this conversation in
General
Replies: 1 comment 1 reply
-
Oh wow this is helpful, thanks! I think we should add dedicated box-decoration-break utilities honestly since it's useful outside of this situation too. Maybe box-slice and box-clone? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Multiline text gradients are breaking on certain browsers (like Safari iOS) because
.bg-clip-text
currently lacks abox-decoration-break
property. Any line beyond the first is black or transparent in these cases.This problem is easily resolved by adding the following rule to my
tailwind.css
document, but I believe it should be integrated into the core:More info on this issue: https://zellwk.com/blog/multi-line-gradient-links/
Beta Was this translation helpful? Give feedback.
All reactions