Skip to content

Commit 96b18e8

Browse files
committed
no need to care about inherit in css3 anymore
1 parent 0222abc commit 96b18e8

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,10 @@ public CssScrollbarWidth(ApplContext ac, CssExpression expression, boolean check
6666

6767
switch (val.getType()) {
6868
case CssTypes.CSS_IDENT:
69-
if (inherit.equals(val)) {
69+
CssIdent ident = getAllowedIdent(val.getIdent());
70+
if (ident != null) {
7071
value = val;
7172
break;
72-
} else {
73-
CssIdent ident = getAllowedIdent(val.getIdent());
74-
if (ident != null) {
75-
value = val;
76-
break;
77-
}
7873
}
7974
// let it fail
8075
default:

0 commit comments

Comments
 (0)