Skip to content

Commit 3e5745f

Browse files
Update changelog and add test for absolute url rebasing (#15282)
I noticed uncommitted changes of #15275 on my local setup so here's the updated changelog and the added unit test.
1 parent 5454014 commit 3e5745f

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Fixed
1111

12-
- Ensure absolute `url()`s inside imported CSS files are not rebased when using `@tailwindcss/vite`
12+
- Ensure absolute `url()`s inside imported CSS files are not rebased when using `@tailwindcss/vite` ([#15275](https://github.com/tailwindlabs/tailwindcss/pull/15275))
1313
- Fix issues with dev servers using Svelte 5 with the Vite plugin ([#15274](https://github.com/tailwindlabs/tailwindcss/issues/15274))
1414
- Fix resolution of imported CSS files in Vite SSR builds ([#15279](https://github.com/tailwindlabs/tailwindcss/issues/15279))
1515
- Ensure other plugins can run after `@tailwindcss/postcss` ([#15273](https://github.com/tailwindlabs/tailwindcss/pull/15273))

packages/@tailwindcss-node/src/urls.test.ts

+10
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ test('URLs can be rewritten', async () => {
1818
background: url('./image.jpg');
1919
background: url("./image.jpg");
2020
21+
/* Absolute URLs: ignored */
22+
background: url(/image.jpg);
23+
background: url(/foo/image.jpg);
24+
background: url('/image.jpg');
25+
background: url("/image.jpg");
26+
2127
/* External URL: ignored */
2228
background: url(http://example.com/image.jpg);
2329
background: url('http://example.com/image.jpg');
@@ -99,6 +105,10 @@ test('URLs can be rewritten', async () => {
99105
background: url(./foo/image.jpg);
100106
background: url('./foo/bar/image.jpg');
101107
background: url("./foo/bar/image.jpg");
108+
background: url(/image.jpg);
109+
background: url(/foo/image.jpg);
110+
background: url('/image.jpg');
111+
background: url("/image.jpg");
102112
background: url(http://example.com/image.jpg);
103113
background: url('http://example.com/image.jpg');
104114
background: url("http://example.com/image.jpg");

0 commit comments

Comments
 (0)