From 630aef764317722ab6d549743932a3250202d69a Mon Sep 17 00:00:00 2001 From: Shiba <44804845+DeepDoge@users.noreply.github.com> Date: Fri, 18 Oct 2024 13:40:49 +0000 Subject: [PATCH] Updated styling example in apps/compare --- .../src/content/2-templating/2-styling/purify.js/util-css.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/compare/src/content/2-templating/2-styling/purify.js/util-css.ts b/apps/compare/src/content/2-templating/2-styling/purify.js/util-css.ts index 1ab2b87..13a1492 100644 --- a/apps/compare/src/content/2-templating/2-styling/purify.js/util-css.ts +++ b/apps/compare/src/content/2-templating/2-styling/purify.js/util-css.ts @@ -21,7 +21,7 @@ export function scope(css: string): Lifecycle.OnConnected { const scopeId = Math.random().toString(36).slice(2); document.adoptedStyleSheets.push( sheet( - `@scope ([data-scope="${scopeId}"]) to ([data-scope]:not([data-scope="${scopeId}"]) > *) {${css}}`, + `@scope ([data-scope="${scopeId}"]) to ([data-scope] > *) {${css}}`, ), ); element.dataset.scope = scopeId;