Skip to content

Commit

Permalink
Fix: initRuntime() is missing the default document
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Nov 5, 2023
1 parent b7a60d5 commit 4009a13
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/css/src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ export class MasterCSS {
return this
}

if (!targetRoot) targetRoot = document

// @ts-ignore
this.root = targetRoot
const isDocumentRoot = targetRoot === document
Expand Down Expand Up @@ -1402,7 +1404,7 @@ export class MasterCSS {
+ '}'
}

const keyframeRulesIndex = this.hasVariablesRule ? 1 : 0
const keyframeRulesIndex = this.hasVariablesRule ? 1 : 0
let keyframeRule: Rule
if (this.hasKeyframesRule) {
(keyframeRule = this.rules[keyframeRulesIndex]).natives.push(nativeRule)
Expand Down

0 comments on commit 4009a13

Please sign in to comment.