File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -234,12 +234,6 @@ impl Machine for ArbitraryPropertyMachine<ParsingValueState> {
234234 // An `!` at the top-level must be followed by "important" *and* be at the end
235235 // otherwise its invalid
236236 Class :: Exclamation if self . bracket_stack . is_empty ( ) => {
237- if cursor. input [ cursor. pos ..] . starts_with ( b"!important]" ) {
238- cursor. advance_by ( 10 ) ;
239-
240- return self . done ( self . start_pos , cursor) ;
241- }
242-
243237 return self . restart ( ) ;
244238 }
245239
@@ -386,8 +380,7 @@ mod tests {
386380 ) ,
387381 // A property containing `!` at the top-level is invalid
388382 ( "[color:red!]" , vec ! [ ] ) ,
389- // Unless its part of `!important at the end
390- ( "[color:red!important]" , vec ! [ "[color:red!important]" ] ) ,
383+ ( "[color:red!important]" , vec ! [ ] ) ,
391384 ] {
392385 for wrapper in [
393386 // No wrapper
You can’t perform that action at this time.
0 commit comments