tailwindcss/packages
Robin Malfait b7c4d25ae4
Ensure existing spaces in attribute selectors are valid (#14703)
This PR fixes an issue where spaces in a selector generated invalid CSS.

Lightning CSS will throw those incorrect lines of CSS out, but if you
are in an environment where Lightning CSS doesn't run then invalid CSS
is generated.

Given this input:

```html
data-[foo_=_"true"]:flex
```

This will be generated:

```css
.data-\[foo_\=_\"true\"\]\:flex[data-foo=""true] {
  display: flex;
}
```

With this PR in place, the generated CSS will now be:

```css
.data-\[foo_\=_\"true\"\]\:flex[data-foo="true"] {
  display: flex;
}
```

---------

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2024-10-18 19:51:43 +02:00
..
@tailwindcss-cli Prepare v4.0.0-alpha.28 release (#14709) 2024-10-17 17:03:28 -04:00
@tailwindcss-node Prepare v4.0.0-alpha.28 release (#14709) 2024-10-17 17:03:28 -04:00
@tailwindcss-postcss Prepare v4.0.0-alpha.28 release (#14709) 2024-10-17 17:03:28 -04:00
@tailwindcss-standalone Prepare v4.0.0-alpha.28 release (#14709) 2024-10-17 17:03:28 -04:00
@tailwindcss-upgrade content rules from the JS config that are also covered by the automatic source detection should not be migrated to CSS (#14714) 2024-10-18 15:48:56 +02:00
@tailwindcss-vite Prepare v4.0.0-alpha.28 release (#14709) 2024-10-17 17:03:28 -04:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Ensure existing spaces in attribute selectors are valid (#14703) 2024-10-18 19:51:43 +02:00
tsconfig.base.json introduce v4 codebase 2024-03-05 14:29:15 +01:00