Index: third_party/WebKit/Source/core/css/MediaQueryExp.cpp |
diff --git a/third_party/WebKit/Source/core/css/MediaQueryExp.cpp b/third_party/WebKit/Source/core/css/MediaQueryExp.cpp |
index d41baa58fed0724983230ce849f2045e675d1764..ada04787593ec528568be1cd998181f447844d8d 100644 |
--- a/third_party/WebKit/Source/core/css/MediaQueryExp.cpp |
+++ b/third_party/WebKit/Source/core/css/MediaQueryExp.cpp |
@@ -65,6 +65,12 @@ static inline bool featureWithValidIdent(const String& mediaFeature, |
if (mediaFeature == shapeMediaFeature) |
return ident == CSSValueRect || ident == CSSValueRound; |
} |
+ |
+ if (mediaFeature == colorGamutMediaFeature) { |
+ return ident == CSSValueSRGB || ident == CSSValueP3 || |
+ ident == CSSValueRec2020; |
+ } |
+ |
return false; |
} |
@@ -168,7 +174,9 @@ static inline bool featureWithoutValue(const String& mediaFeature) { |
mediaFeature == devicePixelRatioMediaFeature || |
mediaFeature == resolutionMediaFeature || |
mediaFeature == displayModeMediaFeature || |
- mediaFeature == scanMediaFeature || mediaFeature == shapeMediaFeature; |
+ mediaFeature == scanMediaFeature || |
+ mediaFeature == shapeMediaFeature || |
+ mediaFeature == colorGamutMediaFeature; |
} |
bool MediaQueryExp::isViewportDependent() const { |