Skip to content

Specific group-has- utility with hyphenated modifier doesn't render CSS #13137

@benface

Description

@benface

What version of Tailwind CSS are you using?

v3.4.1

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

Tailwind Play

What version of Node.js are you using?

Tailwind Play

What browser are you using?

Any

What operating system are you using?

Any

Reproduction URL

https://play.tailwindcss.com/dVDTGsBgzE

Describe your issue

The class group-has-[[data-test=test]]/test-modifier:block doesn't render any CSS, though it appears valid (at least according to the intellisense). Interestingly, if you do any of the following, then it works:

  • remove the hyphen from the modifier (e.g. /test instead of /test-modifier)
  • remove the value from the data attribute (e.g. [data-test])
  • add any selector after the data attribute one (e.g. [data-test=test]:checked)

CleanShot 2024-03-07 at 16 12 49@2x

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