summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar natemoo-re <natemoo-re@users.noreply.github.com> 2021-06-02 01:04:40 +0000
committerGravatar GitHub Actions <actions@github.com> 2021-06-02 01:04:40 +0000
commite3df5e80e16b6dec75ec7f44a1ea4c0692606fdb (patch)
treef982641b5f331408a3daa98376f58f85a6daa816
parent46871d2d4a7968c0c3b38bdb147eae3a2d4852f8 (diff)
downloadastro-e3df5e80e16b6dec75ec7f44a1ea4c0692606fdb.tar.gz
astro-e3df5e80e16b6dec75ec7f44a1ea4c0692606fdb.tar.zst
astro-e3df5e80e16b6dec75ec7f44a1ea4c0692606fdb.zip
[ci] yarn format
-rw-r--r--packages/astro/src/compiler/transform/postcss-scoped-styles/index.ts18
1 files changed, 17 insertions, 1 deletions
diff --git a/packages/astro/src/compiler/transform/postcss-scoped-styles/index.ts b/packages/astro/src/compiler/transform/postcss-scoped-styles/index.ts
index a7d20b9d4..63ac9fd8d 100644
--- a/packages/astro/src/compiler/transform/postcss-scoped-styles/index.ts
+++ b/packages/astro/src/compiler/transform/postcss-scoped-styles/index.ts
@@ -14,7 +14,23 @@ const CSS_SEPARATORS = new Set([' ', ',', '+', '>', '~']);
const KEYFRAME_PERCENT = /\d+\.?\d*%/;
/** HTML tags that should never get scoped classes */
-export const NEVER_SCOPED_TAGS = new Set<string>(['base', 'body', 'font', 'frame', 'frameset', 'head', 'html', 'link', 'meta', 'noframes', 'noscript', 'script', 'style', 'title', '!doctype']);
+export const NEVER_SCOPED_TAGS = new Set<string>([
+ 'base',
+ 'body',
+ 'font',
+ 'frame',
+ 'frameset',
+ 'head',
+ 'html',
+ 'link',
+ 'meta',
+ 'noframes',
+ 'noscript',
+ 'script',
+ 'style',
+ 'title',
+ '!doctype',
+]);
/**
* Scope Rules
* Given a selector string (`.btn>span,.nav>span`), add an additional CSS class to every selector (`.btn.myClass>span.myClass,.nav.myClass>span.myClass`)