We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 212fe9c commit 4289b72Copy full SHA for 4289b72
packages/svelte/src/compiler/phases/2-analyze/css/css-analyze.js
@@ -221,15 +221,12 @@ const css_visitors = {
221
222
if (idx !== -1) {
223
is_global_block = true;
224
+
225
if (i === 0) {
- if (
226
- !context.state.has_unscoped_global.value &&
227
- is_unscoped_global(context.path) &&
228
- node.block.children.length > 0
229
- ) {
230
- context.state.has_unscoped_global.value = true;
231
- }
+ context.state.has_unscoped_global.value ||=
+ node.block.children.length > 0 && is_unscoped_global(context.path);
232
}
233
for (let i = idx + 1; i < child.selectors.length; i++) {
234
walk(/** @type {AST.CSS.Node} */ (child.selectors[i]), null, {
235
ComplexSelector(node) {
0 commit comments