Skip to content

Commit

Permalink
Revert "update style.textContent instead of calling insertRule, #75061"
Browse files Browse the repository at this point in the history
This reverts commit 5565ddd.
  • Loading branch information
jrieken committed Jul 22, 2019
1 parent 4deeb95 commit 18a1030
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vs/base/browser/dom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,8 @@ export function createCSSRule(selector: string, cssText: string, style: HTMLStyl
if (!style || !cssText) {
return;
}
style.textContent = `${selector}{${cssText}}\n${style.textContent}`;

(<CSSStyleSheet>style.sheet).insertRule(selector + '{' + cssText + '}', 0);
}

export function removeCSSRulesContainingSelector(ruleName: string, style: HTMLStyleElement = getSharedStyleSheet()): void {
Expand Down

0 comments on commit 18a1030

Please sign in to comment.