File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/svelte/src/compiler/phases/2-analyze/css Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ function is_global_block_selector(simple_selector) {
3434 * @param {import('../types.js').Context["path"] } path
3535 * @returns
3636 */
37- function is_unscoped_global ( path ) {
37+ function is_unscoped ( path ) {
3838 // remove every at rule or stylesheet and the current rule in case is passed in from `ComplexSelector`
3939 return path
4040 . filter ( ( node ) => node . type === 'Rule' )
@@ -57,7 +57,7 @@ const css_visitors = {
5757 context . state . keyframes . push ( node . prelude ) ;
5858 } else if ( node . prelude . startsWith ( '-global-' ) ) {
5959 // we don't check if the block.children.length because the keyframe is still added even if empty
60- context . state . has_global . value ||= is_unscoped_global ( context . path ) ;
60+ context . state . has_global . value ||= is_unscoped ( context . path ) ;
6161 }
6262 }
6363
@@ -279,7 +279,7 @@ const css_visitors = {
279279 context . state . has_global . value ||=
280280 node . metadata . has_global_selectors &&
281281 node . block . children . filter ( ( child ) => child . type === 'Declaration' ) . length > 0 &&
282- is_unscoped_global ( context . path ) ;
282+ is_unscoped ( context . path ) ;
283283
284284 // visit block list, so parent rule metadata is populated
285285 context . visit ( node . block , state ) ;
You can’t perform that action at this time.
0 commit comments