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 calc() function breaks when it has more than one occurrence of theme(). This only happens in arbitrary properties. In arbitrary values, everything works as expected.
I can't be 100% sure, but it seems to have worked in previous versions of Tailwind.
The text was updated successfully, but these errors were encountered:
For whoever gets a chance to hack on this — looks like a bug in our parser, specifically only happens when making theme calls with square brackets — can see it works here if the second theme call is using dot notation:
What version of Tailwind CSS are you using?
v3.3.1
What build tool (or framework if it abstracts the build tool) are you using?
play.tailwindcss.com
What browser are you using?
Chrome
What operating system are you using?
Windows
Reproduction URL
https://play.tailwindcss.com/1Z2PI86485
Describe your issue
The
calc()
function breaks when it has more than one occurrence oftheme()
. This only happens in arbitrary properties. In arbitrary values, everything works as expected.I can't be 100% sure, but it seems to have worked in previous versions of Tailwind.
The text was updated successfully, but these errors were encountered: