We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 903adb4 + 26d6ee8 commit d31bd52Copy full SHA for d31bd52
src/transform.ts
@@ -34,7 +34,12 @@ export function transformCSS(
34
// Handle inline stylesheets
35
el.innerHTML = css;
36
} else if (el instanceof HTMLLinkElement) {
37
- // Replace link elements with style elements
+ // Replace link elements with style elements.
38
+ // We use inline style elements rather than link elements with blob
39
+ // URLs, as relative URLs for things like images and fonts are not
40
+ // supported in blob URLs. See
41
+ // https://github.com/oddbird/css-anchor-positioning/pull/324 for more
42
+ // discussion.
43
const styleEl = document.createElement('style');
44
styleEl.textContent = css;
45
for (const name of el.getAttributeNames()) {
0 commit comments