Skip to content

Commit

Permalink
Improve CSS compatibility with happy-dom
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-go committed Dec 22, 2023
1 parent 764eb73 commit a73315f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Raw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ class Raw extends (() => Object as any as RawElements)()
}

const idx = sheet.insertRule(selector + "{}");
const cssRule = sheet.cssRules.item(idx) as CSSStyleRule;
const cssRule = sheet.cssRules[idx] as CSSStyleRule;

for (const stylesObject of group.styles)
for (let [n, v] of Object.entries(stylesObject))
Expand Down

0 comments on commit a73315f

Please sign in to comment.