Skip to content

Commit 54d4cac

Browse files
committed
Remove !important thing
1 parent 7f34f3f commit 54d4cac

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

crates/oxide/src/extractor/arbitrary_property_machine.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)