| Summary: | [WinCairo] Support prefers-color-scheme media query | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Fujii Hironori <Hironori.Fujii> | ||||
| Component: | WebCore Misc. | Assignee: | Fujii Hironori <Hironori.Fujii> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | annulen, don.olmstead, ews-watchlist, gyuyoung.kim, ross.kirsling, ryuan.choi, sergio, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Bug Depends on: | |||||||
| Bug Blocks: | 230032, 230077 | ||||||
| Attachments: |
|
||||||
|
Description
Fujii Hironori
2021-09-06 17:12:16 PDT
https://kuro.netlify.app/ doesn't have a background image in WinCairo. It doesn't support browsers not supporting prefers-color-scheme. > @media (prefers-color-scheme: light) { > body{ > background: url("img/bglight.svg") no-repeat; > } > } > > @media (prefers-color-scheme: dark) { > body{ > background: url("img/bgdark.svg") no-repeat; > } > } The dark mode win32 API is still undocumented. Discussion: Dark mode for applications · Issue #41 · microsoft/WindowsAppSDK https://github.com/microsoft/WindowsAppSDK/issues/41 windows - Win10 dark theme - how to use in WINAPI? - Stack Overflow https://stackoverflow.com/q/53501268 Created attachment 437445 [details]
Patch
Comment on attachment 437445 [details]
Patch
r=me
Can you open a bug for an actual implementation of dark mode on Windows?
Comment on attachment 437445 [details] Patch Clearing flags on attachment: 437445 Committed r282123 (241420@main): <https://commits.webkit.org/241420@main> All reviewed patches have been landed. Closing bug. Filed: Bug 230032 – [WinCairo] Add dark mode support (In reply to Fujii Hironori from comment #5) > Committed r282123 (241420@main): <https://commits.webkit.org/241420@main> This change causes new test failures for WinCairo. Filed: Bug 230077 – [Win] REGRESSION(r282123): some layout tests are failing because the bgcolor of text input forms are unexpectedly black |