Skip to content

Commit df2b966

Browse files
committed
limit should be excluded from the boundary check
1 parent ee35027 commit df2b966

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

org/w3c/css/values/RGBA.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static final CssValue filterAlpha(ApplContext ac, CssValue val)
4242
}
4343
if (val.getRawType() == CssTypes.CSS_NUMBER) {
4444
BigDecimal pp = ((CssNumber) val).value;
45-
if (pp.compareTo(BigDecimal.ONE) >= 0) {
45+
if (pp.compareTo(BigDecimal.ONE) > 0) {
4646
ac.getFrame().addWarning("out-of-range", val.toString());
4747
CssNumber nb = new CssNumber();
4848
nb.setIntValue(1);

0 commit comments

Comments
 (0)