Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Implement forced-colors media query.
https://bugs.webkit.org/show_bug.cgi?id=225281 rdar://77715265 Reviewed by Tim Nguyen and Aditya Keerthi. MQ always matchs "none", as there is no concept of "forced colors" in Cocoa. https://www.w3.org/TR/mediaqueries-5/#forced-colors * LayoutTests/imported/w3c/web-platform-tests/css/mediaqueries/forced-colors-expected.txt: * Source/WebCore/css/CSSValueKeywords.in: * Source/WebCore/css/MediaFeatureNames.h: * Source/WebCore/css/MediaQueryEvaluator.cpp: (WebCore::forcedColorsEvaluate): * Source/WebCore/css/MediaQueryExpression.cpp: (WebCore::isValidValueForIdentMediaFeature): (WebCore::featureWithValidIdent): (WebCore::isFeatureValidWithoutValue): Canonical link: https://commits.webkit.org/253290@main
- Loading branch information
Showing
5 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1172,6 +1172,10 @@ hover | ||
progressive | ||
interlace | ||
|
||
// (forced-colors:) media feature. | ||
// none | ||
active | ||
|
||
// blend modes | ||
// normal | ||
multiply | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters