tailwindcss/packages
Philipp Spiess adc8dfb1a2
Ensure CSS theme() functions are evaluated in media query ranges with collapsed whitespace (#14321)
Fixes #14320

This PR adds `>`, `<`, and `=` as separators into the CSS value parser.
This is necessary because [`@media` range
context](https://www.w3.org/TR/mediaqueries-4/#mq-range-context) does
not require spaces around these operators so something like this is a
valid value for the range syntax:

```css
@media (40rem<width<=48rem) { 
  /* ... */
}
```

If you add our CSS `theme()` function to the mix, this rule look like
that:

```css
@media (theme(--breakpoint-sm)<width<=theme(--breakpoint-md)) {
  /* ... */
}
```

---------

Co-authored-by: Adam Wathan <adam.wathan@gmail.com>
2024-09-03 17:27:18 +02:00
..
@tailwindcss-cli Ensure content globs defined in @config files are relative to that file (#14314) 2024-09-03 16:54:08 +02:00
@tailwindcss-node Prepare v4.0.0-alpha.21 (#14313) 2024-09-02 15:43:28 -04:00
@tailwindcss-postcss Ensure content globs defined in @config files are relative to that file (#14314) 2024-09-03 16:54:08 +02:00
@tailwindcss-standalone Prepare v4.0.0-alpha.21 (#14313) 2024-09-02 15:43:28 -04:00
@tailwindcss-vite Ensure content globs defined in @config files are relative to that file (#14314) 2024-09-03 16:54:08 +02:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
internal-postcss-fix-relative-paths Support loading config files via @config (#14239) 2024-09-02 18:03:16 +02:00
tailwindcss Ensure CSS theme() functions are evaluated in media query ranges with collapsed whitespace (#14321) 2024-09-03 17:27:18 +02:00
tsconfig.base.json introduce v4 codebase 2024-03-05 14:29:15 +01:00