Skip to content
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

backdrop-blur- does not work on webkit browsers (ie safari) #13844

Closed
t3duk opened this issue Jun 16, 2024 · 1 comment
Closed

backdrop-blur- does not work on webkit browsers (ie safari) #13844

t3duk opened this issue Jun 16, 2024 · 1 comment
Assignees

Comments

@t3duk
Copy link

t3duk commented Jun 16, 2024

What version of Tailwind CSS are you using?
v3.4.4

What build tool (or framework if it abstracts the build tool) are you using?

Next v14.2.2
PostCSS v8

What version of Node.js are you using?

Node v20.11.1
Bun v1.1.8

What browser are you using?

Safari [macOS/iOS] (does NOT work as expected) v17.5
Brave [Windows] (works as expected) v1.67.116
Arc [macOS] (works as expected) v1.47.1
Edge [Windows] (works as expected) v126.0.2592.56

What operating system are you using?

macOS 14.5
Windows 11 23H2

Reproduction URL

https://play.tailwindcss.com/s0uKhW1RIh

Describe your issue

The backdrop-blur- classes do not add the -webkit- style, so Safari and other webkit browsers aren't being styled with a backdrop blur.

In this mean while, ot solve this I manually added each of the classes to my global css file

.backdrop-blur-3xl {
  --tw-backdrop-blur: blur(64px);
  -webkit-backdrop-filter: var(--tw-backdrop-blur);
  backdrop-filter: var(--tw-backdrop-blur);
}
...etc
@thecrypticace
Copy link
Contributor

thecrypticace commented Jun 17, 2024

Hey! In your own projects this is handled by autoprefixer which uses your browserslist configuration to determine supported browsers and what prefixes need to be applied. As for Tailwind Play, there was a configuration issue (also related to autoprefixer) that caused this but I've fixed it and your Play now works and shows the blur correctly!

Thanks for letting us know 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants