tailwindcss/packages
Robin Malfait 4e164107dd
Fix parsing url(…) with special characters such as ; or {} (#14879)
This PR fixes an issue where some special characters (with an actual
meaning CSS) were used inside of the `url(…)` function, would result in
incorrectly parsed CSS.

For example, when we encounter a `{`, then we would start a new "block"
for nesting purposes. If we encounter an `}`, then the block would end.
If we encounter a `;`, then that would be the end of a declaration.

All of that is true, unless we are in a `url(…)` function. In that case,
we should ignore all of those characters and treat them as part of the
URL.

This is only an issue because:

1. We are allowed to use these characters in URLs.
2. We can write an url inside `url(…)` without quotes. With quotes, this
would not be an issue.

---------

Co-authored-by: Philipp Spiess <hello@philippspiess.com>
2024-11-06 12:06:49 +01:00
..
@tailwindcss-cli Fix macOS test flakiness (#14869) 2024-11-04 13:07:25 -05:00
@tailwindcss-node Prepare v4.0.0-alpha.31 release (#14823) 2024-10-30 07:53:51 -04:00
@tailwindcss-postcss Derive all font-weight values from theme (#14883) 2024-11-05 16:06:47 -05:00
@tailwindcss-standalone Prepare v4.0.0-alpha.31 release (#14823) 2024-10-30 07:53:51 -04:00
@tailwindcss-upgrade Derive all font-weight values from theme (#14883) 2024-11-05 16:06:47 -05:00
@tailwindcss-vite Support migrating projects with multiple config files (#14863) 2024-11-04 16:52:11 +00:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Fix parsing url(…) with special characters such as ; or {} (#14879) 2024-11-06 12:06:49 +01:00
tsconfig.base.json introduce v4 codebase 2024-03-05 14:29:15 +01:00