You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bundled SVG as dataurl drops fragment (id) specifier #4370
I'm using esbuild to bundle CSS (amongst other things) and embed small SVGs as data-uris. CSS clip-path supports referencing a specific clipPath id from an SVG resource by fragment specifier. This works for me (in Chrome) without bundling, however when the SVG is converted to a data-uri, the fragment specifier is dropped. Embedding it "manually" and including the fragment specifier on the data-uri works for me (in Chrome).
Activity
evanw commentedon Feb 5, 2026
Huh, that's pretty crazy. I had no idea that this was a feature. Thanks for the heads up!
add a failing test for #4370
Update dependency esbuild to v0.28.2 (#2)