@@ -6,7 +6,7 @@ import * as pseudos from '../values/pseudos.js'
66import { add as addTypes , dimensionTypes , getCalculationType , matchNumericType } from './types.js'
77import { angle , filter , keyword , list , map , number , omitted , string } from '../values/value.js'
88import { auto , notAll } from '../values/defaults.js'
9- import { findFunction , findSibling , getDeclaration , getDeclarationName , getFunctionName , getRule , getRuleName , isDeclaredBy , isProducedBy } from '../utils/context.js'
9+ import { findFunction , findSibling , getBlock , getDeclaration , getDeclarationName , getFunctionName , getProduction , getRule , getRuleName , isDeclaredBy , isProducedBy } from '../utils/context.js'
1010import { getDeclarationDefinition , parseDeclarationValue , parseGrammar } from './parser.js'
1111import { isBlock , isCalculation , isComputationallyIndependent , isFailure , isFunction , isList , isOmitted , isWhitespace } from '../utils/value.js'
1212import { isHexadecimal , isIdentifierCharacter , isWhitespace as isWhitespaceCharacter , toLowerCase } from '../utils/string.js'
@@ -1275,6 +1275,10 @@ function postParseNSPrefix(prefix, node) {
12751275 if ( isOmitted ( name ) || node . context . globals . get ( 'namespaces' ) . has ( name . value ) ) {
12761276 return prefix
12771277 }
1278+ const block = getBlock ( node )
1279+ if ( block && getProduction ( block ) ?. definition . name === '<attribute-selector>' ) {
1280+ return
1281+ }
12781282 return error ( node )
12791283}
12801284
0 commit comments