WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 229976
[WinCairo] Support prefers-color-scheme media query
https://bugs.webkit.org/show_bug.cgi?id=229976
Summary
[WinCairo] Support prefers-color-scheme media query
Fujii Hironori
Reported
2021-09-06 17:12:16 PDT
[WinCairo] Support prefers-color-scheme media query See also:
Bug 190499
– Add support for prefers-color-scheme media query
Bug 196685
– [GTK] Support prefers-color-scheme media query
Attachments
Patch
(3.55 KB, patch)
2021-09-06 19:23 PDT
,
Fujii Hironori
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Fujii Hironori
Comment 1
2021-09-06 17:16:11 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; > } > }
Fujii Hironori
Comment 2
2021-09-06 18:49:40 PDT
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
Fujii Hironori
Comment 3
2021-09-06 19:23:45 PDT
Created
attachment 437445
[details]
Patch
Don Olmstead
Comment 4
2021-09-07 18:21:19 PDT
Comment on
attachment 437445
[details]
Patch r=me Can you open a bug for an actual implementation of dark mode on Windows?
Fujii Hironori
Comment 5
2021-09-07 19:02:49 PDT
Comment on
attachment 437445
[details]
Patch Clearing flags on attachment: 437445 Committed
r282123
(
241420@main
): <
https://commits.webkit.org/241420@main
>
Fujii Hironori
Comment 6
2021-09-07 19:02:53 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7
2021-09-07 19:03:16 PDT
<
rdar://problem/82850531
>
Fujii Hironori
Comment 8
2021-09-07 19:07:03 PDT
Filed:
Bug 230032
– [WinCairo] Add dark mode support
Fujii Hironori
Comment 9
2021-09-08 20:20:52 PDT
(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
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug