Skip to content

Commit

Permalink
Fixes the issue where the "!important" rule is not applied in the cas…
Browse files Browse the repository at this point in the history
…e of an UnknownValue (AllowInvalidValues = true).

In the following CSS, the value is recognized as unknown, but important is ignored.

.moderntable > .moderntable-caption {
  width: min-content !important;
}
  • Loading branch information
cwall-dev committed Oct 17, 2024
1 parent d0a5763 commit d9ef114
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ExCSS/Parser/StylesheetComposer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,7 @@ public Property CreateDeclarationWith(Func<string, Property> createProperty, ref

property = new UnknownProperty(propertyName);
property.TrySetValue(value);
property.IsImportant = important;
_nodes.Push(property);
}
}
Expand Down

0 comments on commit d9ef114

Please sign in to comment.