Skip to content

Commit 669e8c0

Browse files
committed
clarify
1 parent 1f0fe45 commit 669e8c0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/svelte/messages/compile-errors/style.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
## css_global_block_invalid_declaration
1414

15-
> A `:global {...}` block can only contain rules, not declarations
15+
> A top-level `:global {...}` block can only contain rules, not declarations
1616
1717
## css_global_block_invalid_list
1818

packages/svelte/src/compiler/errors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,12 +444,12 @@ export function css_global_block_invalid_combinator(node, name) {
444444
}
445445

446446
/**
447-
* A `:global {...}` block can only contain rules, not declarations
447+
* A top-level `:global {...}` block can only contain rules, not declarations
448448
* @param {null | number | NodeLike} node
449449
* @returns {never}
450450
*/
451451
export function css_global_block_invalid_declaration(node) {
452-
e(node, "css_global_block_invalid_declaration", "A `:global {...}` block can only contain rules, not declarations");
452+
e(node, "css_global_block_invalid_declaration", "A top-level `:global {...}` block can only contain rules, not declarations");
453453
}
454454

455455
/**

0 commit comments

Comments
 (0)