Skip to content

Commit eca30bb

Browse files
committed
fix for unaccounted user-defined list-style, add errors for non ident values, this fixes #380
1 parent 618f94c commit eca30bb

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

org/w3c/css/properties/css3/CssContent.java

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,16 @@ protected static void checkCounterFunction(ApplContext ac,
261261
v = exp.getValue();
262262
if (v.getType() == CssTypes.CSS_IDENT) {
263263
if (null == CssListStyleType.getAllowedIdent(v.getIdent())) {
264-
throw new InvalidParamException("value", v,
265-
property.getPropertyName(), ac);
264+
// here we should check existing name counter-style.
265+
// and release a warning if not
266+
// we should first add a warning here to highlight the issue
267+
// (non-existent style should behave like decimal)
268+
// throw new InvalidParamException("value", v,
269+
// property.getPropertyName(), ac);
266270
}
271+
} else {
272+
throw new InvalidParamException("value", v,
273+
property.getPropertyName(), ac);
267274
}
268275
}
269276
}

0 commit comments

Comments
 (0)