summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Drew Powers <1369770+drwpow@users.noreply.github.com> 2021-04-02 12:50:30 -0600
committerGravatar GitHub <noreply@github.com> 2021-04-02 12:50:30 -0600
commitb58b493948ef7b6453ba8c4e94c4bd2fcaea8452 (patch)
tree4bb0426f35e3c7e6a8c7523e6f0aaa1e90407113 /test
parent004b3ea6a0b48ecc04d2a0daf9aae374983bed08 (diff)
downloadastro-b58b493948ef7b6453ba8c4e94c4bd2fcaea8452.tar.gz
astro-b58b493948ef7b6453ba8c4e94c4bd2fcaea8452.tar.zst
astro-b58b493948ef7b6453ba8c4e94c4bd2fcaea8452.zip
Fix body from being scoped (#56)
Diffstat (limited to 'test')
-rw-r--r--test/astro-scoped-styles.test.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/astro-scoped-styles.test.js b/test/astro-scoped-styles.test.js
index 18870e6c6..ac84c9ffa 100644
--- a/test/astro-scoped-styles.test.js
+++ b/test/astro-scoped-styles.test.js
@@ -18,6 +18,7 @@ const tests = {
'.class :global(*)': `.class${className} *`,
'.class :global(.nav:not(.is-active))': `.class${className} .nav:not(.is-active)`, // preserve nested parens
'.class:not(.is-active)': `.class${className}:not(.is-active)`, // Note: the :not() selector can NOT contain multiple classes, so this is correct; if this causes issues for some people then it‘s worth a discussion
+ 'body h1': `body h1${className}`, // body shouldn‘t be scoped; it‘s not a component
};
ScopedStyles('Scopes correctly', () => {