Skip to content

arbitrary variants with modifiers inside the selector are generated in the wrong order #9977

@Torsten85

Description

@Torsten85

What version of Tailwind CSS are you using?

v3.2.4

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

playground

Reproduction URL
https://play.tailwindcss.com/RWATzeVv1a

Describe your issue

This arbitrary variant [&::-webkit-scrollbar-thumb:hover]:bg-green-500 is generated in the wrong order as &:hover::-webkit-scrollbar-thumb but should be &::-webkit-scrollbar-thumb:hover.

When replacing the :: with just one :, the generated order is correct (but the result obviously does not work anymore)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions