Index: Source/core/css/CSSParser.cpp |
diff --git a/Source/core/css/CSSParser.cpp b/Source/core/css/CSSParser.cpp |
index fb1074f923083f5b7721b3458f151dad63a6ae5b..a9f57995b77fbc53116662a484d8e19dc342778e 100644 |
--- a/Source/core/css/CSSParser.cpp |
+++ b/Source/core/css/CSSParser.cpp |
@@ -11470,11 +11470,11 @@ bool CSSParser::parseViewportProperty(CSSPropertyID propId, bool important) |
bool validPrimitive = false; |
switch (propId) { |
- case CSSPropertyMinWidth: // auto | device-width | device-height | <length> | <percentage> |
+ case CSSPropertyMinWidth: // auto | <length> | <percentage> |
case CSSPropertyMaxWidth: |
case CSSPropertyMinHeight: |
case CSSPropertyMaxHeight: |
- if (id == CSSValueAuto || id == CSSValueDeviceWidth || id == CSSValueDeviceHeight) |
+ if (id == CSSValueAuto) |
validPrimitive = true; |
else |
validPrimitive = (!id && validUnit(value, FLength | FPercent | FNonNeg)); |