Closed
Description
What version of Tailwind CSS are you using?
For example: v3.3.3
What build tool (or framework if it abstracts the build tool) are you using?
Next.js 13.4.16
What version of Node.js are you using?
v20.6.1
What browser are you using?
Chrome
What operating system are you using?
macOS
Reproduction URL
https://play.tailwindcss.com/mFflelRLYg
Describe your issue
I've been exploring using Tailwind with CSS scroll animations and I've noticed that Tailwind is incorrectly adding var()
to specific keywords. For example, with this code:
<div class="[timeline-scope:--tl]">
<div class="[scroll-timeline:--tl]">Scroller</div>
<div class="[animation-timeline:--tl]">Element</div>
</div>
It is incorrectly setting the css properties like so:
timeline-scope: var(--tl);
scroll-timeline: var(--tl);
animation-timeline: var(--tl);
When the intended and correct output should be:
timeline-scope: --tl;
scroll-timeline: --tl;
animation-timeline: --tl;
Metadata
Metadata
Assignees
Labels
No labels