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 c8e4328 commit ddaed11Copy full SHA for ddaed11
org/w3c/css/values/CssVariable.java
@@ -49,6 +49,24 @@ public final int getType() {
49
return computed_type;
50
}
51
52
+ public final CssExpression getVariableExpression() {
53
+ if (ac != null) {
54
+ StyleSheet s = ac.getStyleSheet();
55
+ if (s != null) {
56
+ CssCustomProperty cp = s.getCustomProperty(variable_name);
57
+ if (cp != null) {
58
+ CssVariableDefinition vd = (CssVariableDefinition) cp.value;
59
+ if (vd != null) {
60
+ if (vd.size() > 0) {
61
+ return vd.expression;
62
+ }
63
64
65
66
67
+ return null;
68
69
+
70
String variable_name = null;
71
ApplContext ac;
72
int computed_type = CssTypes.CSS_UNKNOWN;
0 commit comments