diff --git a/src/parser/gradients.js b/src/parser/gradients.js index c232b06..dcd0558 100644 --- a/src/parser/gradients.js +++ b/src/parser/gradients.js @@ -88,7 +88,7 @@ CSSParser.prototype.parseGradient = function () } else if (!gradient.extent && (token.isIdent("closest-corner") - || token.isIdent("closes-side") + || token.isIdent("closest-side") || token.isIdent("farthest-corner") || token.isIdent("farthest-corner"))) { gradient.extent = token.value; diff --git a/src/parser/propertyValue.js b/src/parser/propertyValue.js index 79b40bf..0d98d68 100644 --- a/src/parser/propertyValue.js +++ b/src/parser/propertyValue.js @@ -32,6 +32,7 @@ CSSParser.prototype.parseDefaultPropertyValue = function(token, aDecl, aAcceptPr blocks.push(token.value); } else if (token.isSymbol("}") + || token.isSymbol(")") || token.isSymbol("]")) { if (blocks.length) { var ontop = blocks[blocks.length - 1];