We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ab2022 commit b710fd6Copy full SHA for b710fd6
1 file changed
org/w3c/css/values/CssNumber.java
@@ -29,6 +29,7 @@ public final int getType() {
29
BigDecimal value;
30
boolean isInt = false;
31
String _strval = null;
32
+ boolean relativeColor = false;
33
34
/**
35
* Create a new CssNumber
@@ -103,9 +104,10 @@ public void set(String s, ApplContext ac)
103
104
case "s":
105
case "w":
106
// Fake value as it is relative to the "from" color
107
+ relativeColor = true;
108
value = BigDecimal.ONE;
109
isInt = true;
- _strval = "infinity";
110
+ _strval = val.toLowerCase();
111
break;
112
default:
113
value = new BigDecimal(val);
0 commit comments