Skip to content

inset-shadow-[spec1,spec2] renders all but the first shadow spec outset, not inset #17520

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

Closed
tremby opened this issue Apr 3, 2025 · 1 comment · Fixed by #17523
Closed

inset-shadow-[spec1,spec2] renders all but the first shadow spec outset, not inset #17520

tremby opened this issue Apr 3, 2025 · 1 comment · Fixed by #17523

Comments

@tremby
Copy link

tremby commented Apr 3, 2025

What version of Tailwind CSS are you using?

v4.0.17 in my app, v4.11 in "Tailwind Play"

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

Next.js 15.2.4 but n/a

What version of Node.js are you using?

v20.10.0 but n/a

What browser are you using?

Firefox but affects all

What operating system are you using?

Linux but affects all

Reproduction URL

https://play.tailwindcss.com/gI32O7VLv6

Describe your issue

I would expect inset-shadow-[shadowspec1,shadowspec2] to render 2 inset shadows, but in fact all but the first are rendered as outer shadows.

In my reproduction the second shadow is red, and should appear inside the element on the right side, but it appears outside the element on the left side.

I can work around it by adding inset_ at the start of the 2nd (and further) shadow specs, such as with inset-shadow-[shadowspec1,inset_shadowspec2]

@philipp-spiess
Copy link
Member

Thanks for the report! @wongjn already submitted a fix for this which we'll include in the next patch release later today 👍

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

Successfully merging a pull request may close this issue.

2 participants