diff --git a/packages/rrweb-snapshot/src/utils.ts b/packages/rrweb-snapshot/src/utils.ts index b02f5d72f6..1d582954dc 100644 --- a/packages/rrweb-snapshot/src/utils.ts +++ b/packages/rrweb-snapshot/src/utils.ts @@ -114,8 +114,13 @@ export function stringifyStylesheet(s: CSSStyleSheet): string | null { if (!rules) { return null; } + let sheetHref = s.href; + if (!sheetHref && s.ownerNode && s.ownerNode.ownerDocument) { + // an inline