Index: third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp |
diff --git a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp |
index f25aebc84142ae33997e98f3cb8c3b3f22931ce5..cec9bbd85a1f572b1fc59f9abf1c26bbaa72fd5c 100644 |
--- a/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp |
+++ b/third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp |
@@ -2326,11 +2326,7 @@ static CSSValue* consumeAttr(CSSParserTokenRange args, CSSParserContext context) |
return nullptr; |
String attrName = args.consumeIncludingWhitespace().value(); |
- // CSS allows identifiers with "-" at the start, like "-webkit-mask-image". |
- // But HTML attribute names can't have those characters, and we should not |
- // even parse them inside attr(). |
- // TODO(timloh): We should allow any <ident-token> here. |
- if (attrName[0] == '-' || !args.atEnd()) |
+ if (!args.atEnd()) |
return nullptr; |
if (context.isHTMLDocument()) |