File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
packages/svelte/src/compiler/phases/2-analyze/css Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,11 @@ function is_global_block_selector(simple_selector) {
3232
3333/**
3434 * @param {import('../types.js').Context["path"] } path
35- * @param {AST.CSS.Rule | null } [rule]
3635 * @returns
3736 */
38- function is_unscoped_global ( path , rule ) {
37+ function is_unscoped_global ( path ) {
3938 // remove every at rule or stylesheet and the current rule in case is passed in from `ComplexSelector`
40- const parents = path . filter (
41- ( parent ) => parent . type !== 'Atrule' && parent . type !== 'StyleSheet' && parent !== rule
42- ) ;
39+ const parents = path . filter ( ( parent ) => parent . type !== 'Atrule' && parent . type !== 'StyleSheet' ) ;
4340
4441 let unscoped_global = true ;
4542
You can’t perform that action at this time.
0 commit comments