feat: Add @font-face to be processed by splitShadowRootCss (#1635)

This commit is contained in:
seaders
2025-05-01 18:49:54 +01:00
committed by GitHub
parent e45b77b528
commit 448cbf16c9
3 changed files with 19 additions and 5 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -11,7 +11,7 @@ export function splitShadowRootCss(css: string): {
let shadowCss = css;
let documentCss = '';
const rulesRegex = /(\s*@property[\s\S]*?{[\s\S]*?})/gm;
const rulesRegex = /(\s*@(property|font-face)[\s\S]*?{[\s\S]*?})/gm;
let match;
while ((match = rulesRegex.exec(css)) !== null) {
documentCss += match[1];