Index: Source/core/css/parser/CSSPropertyParser.cpp |
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp |
index d13d2db2576c42833a3d18b6803b5cbffd6e57c2..03915783327cd93820a5f5926f09d14db19620a3 100644 |
--- a/Source/core/css/parser/CSSPropertyParser.cpp |
+++ b/Source/core/css/parser/CSSPropertyParser.cpp |
@@ -4615,8 +4615,7 @@ PassRefPtrWillBeRawPtr<CSSValueList> CSSPropertyParser::parseFontFamily() |
break; |
} |
familyBuilder.commit(); |
- |
- if (!list->length()) |
+ if (!list->length() || (m_ruleType == StyleRule::FontFace && list->length() > 1)) |
list = nullptr; |
return list.release(); |
} |