We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ceb147 commit 0e63e8cCopy full SHA for 0e63e8c
2 files changed
src/ExCSS/StyleProperties/IProperty.cs
@@ -4,6 +4,7 @@ public interface IProperty : IStylesheetNode
4
{
5
string Name { get; }
6
string Value { get; }
7
+ string Original { get; }
8
bool IsImportant { get; }
9
}
10
src/ExCSS/StyleProperties/Property.cs
@@ -31,6 +31,8 @@ internal bool TrySetValue(TokenValue newTokenValue)
31
32
public string Value => DeclaredValue != null ? DeclaredValue.CssText : Keywords.Initial;
33
34
+ public string Original => DeclaredValue != null ? DeclaredValue.Original.Text : Keywords.Initial;
35
+
36
public bool IsInherited => (_flags & PropertyFlags.Inherited) == PropertyFlags.Inherited && IsInitial ||
37
DeclaredValue != null && DeclaredValue.CssText.Is(Keywords.Inherit);
38
0 commit comments