We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a17ee1c commit 8c08fa4Copy full SHA for 8c08fa4
org/w3c/css/values/CssNumber.java
@@ -86,7 +86,7 @@ public void set(String s, ApplContext ac)
86
_strval = "e";
87
break;
88
case "infinity":
89
- value = BigDecimal.valueOf(Double.POSITIVE_INFINITY);
+ value = BigDecimal.valueOf(Double.MAX_VALUE);
90
isInt = true;
91
_strval = "infinity";
92
@@ -109,6 +109,12 @@ public void set(String s, ApplContext ac)
109
110
_strval = val.toLowerCase();
111
112
+ case "nan":
113
+ // FIXME add warning that this iss invalid at compute time?
114
+ value = BigDecimal.valueOf(Long.MAX_VALUE);
115
+ isInt = false;
116
+ _strval = "NaN";
117
+ break;
118
default:
119
value = new BigDecimal(val);
120
isInt = (val.indexOf('.') < 0);
0 commit comments