Bug 198765
| Summary: | html.css and MediaFeatureNames.h refer to prefers-dark-interface" which was renamed to "prefers-color-scheme" | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> |
| Component: | WebKit Misc. | Assignee: | Timothy Hatcher <timothy> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ahmad.saleem792, annevk, ntim, simon.fraser, thorton |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Simon Fraser (smfr)
prefers-dark-interface is the old name.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
We still have this:
https://searchfox.org/wubkat/rev/711120e7edec012527620d07bf63d85713a180fd/Source/WebCore/css/html.css#483
@media (prefers-dark-interface) {
input {
background-color: transparent;
}
...
and
https://searchfox.org/wubkat/rev/711120e7edec012527620d07bf63d85713a180fd/Source/WebCore/css/query/MediaQueryFeatures.cpp#530
const FeatureSchema& prefersDarkInterface()
{
static MainThreadNeverDestroyed<IdentifierSchema> schema {
"prefers-dark-interface"_s,
FixedVector { CSSValueNoPreference, CSSValuePrefers },
[](auto& context) {
Ref page = *context.document->frame()->page();
bool prefersDarkInterface = page->useSystemAppearance() && page->useDarkAppearance();
return MatchingIdentifiers { prefersDarkInterface ? CSSValuePrefers : CSSValueNoPreference };
}
};
return schema;
}
..
___
We have following test as well - use-system-appearance-user-stylesheet-parsing.html