do not add origin before data uri image

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent a75a35b832
commit ca8288802f
2 changed files with 10 additions and 0 deletions

View File

@@ -46,4 +46,10 @@ describe('absolute url to stylesheet', () => {
`url('http://localhost/css/a.jpg')`,
);
});
it('can handle data url image', () => {
expect(
absoluteToStylesheet('url(data:image/gif;base64,ABC)', href),
).to.equal('url(data:image/gif;base64,ABC)');
});
});