[webkit-reviews] review granted: [Bug 196685] [GTK] Support prefers-color-scheme media query : [Attachment 368221] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 25 06:18:50 PDT 2019

Michael Catanzaro <mcatanzaro at igalia.com> has granted Carlos Garcia Campos
<cgarcia at igalia.com>'s request for review:
Bug 196685: [GTK] Support prefers-color-scheme media query

Attachment 368221: Patch


--- Comment #5 from Michael Catanzaro <mcatanzaro at igalia.com> ---
Comment on attachment 368221
  --> https://bugs.webkit.org/attachment.cgi?id=368221

View in context: https://bugs.webkit.org/attachment.cgi?id=368221&action=review

(In reply to Carlos Garcia Campos from comment #2)
> What I'm not
> sure we will be able to support is the supported color schemes feature. That
> means that if we are in dark mode and page claims to only support light, we
> would render in light mode. And if we are in light mode and page claims to
> only support dark, we would render in dark mode.

>From conversations with Timothy, I believe the behavior on macOS is subtly
different than that. The intent is for all pages to be light unless the webpage
specifically says it supports dark. That's how macOS avoids all the web compat
problems we've suffered with pages that just don't expect to be displayed in
dark mode.

For GTK, I think it's OK to do whatever we want that seems to work, including
not supporting this at all if it's really slow, but matching the macOS behavior
would of course be safest.

> LayoutTests/ChangeLog:8
> +	   Unskip css-dark-mode tests and add platform specific results for
some of the tests using the suported color


More information about the webkit-reviews mailing list