We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6906a12 commit 1da2e58Copy full SHA for 1da2e58
webf/lib/src/css/values/variable.dart
@@ -47,7 +47,11 @@ class CSSVariable {
47
48
// Get the lazy calculated CSS resolved value.
49
dynamic computedValue(String propertyName) {
50
- dynamic value = _renderStyle.getCSSVariable(identifier, propertyName) ?? defaultValue;
+ dynamic value = _renderStyle.getCSSVariable(identifier, propertyName);
51
+ if (value == null || value == INITIAL) {
52
+ value = defaultValue;
53
+ }
54
+
55
if (value == null) {
56
return null;
57
}
0 commit comments