Bug 190526 - Add <meta name="supported-color-schemes"> to control what color schemes the page supports
Summary: Add <meta name="supported-color-schemes"> to control what color schemes the p...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Timothy Hatcher
URL:
Keywords: InRadar
Depends on: 190499
Blocks:
  Show dependency treegraph
 
Reported: 2018-10-12 10:36 PDT by Timothy Hatcher
Modified: 2018-10-16 14:54 PDT (History)
8 users (show)

See Also:


Attachments
Patch (40.38 KB, patch)
2018-10-12 13:05 PDT, Timothy Hatcher
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews100 for mac-sierra (2.35 MB, application/zip)
2018-10-12 14:18 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews106 for mac-sierra-wk2 (2.95 MB, application/zip)
2018-10-12 14:28 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews200 for win-future (12.80 MB, application/zip)
2018-10-12 15:26 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews115 for mac-sierra (3.04 MB, application/zip)
2018-10-12 16:04 PDT, EWS Watchlist
no flags Details
Archive of layout-test-results from ews121 for ios-simulator-wk2 (2.84 MB, application/zip)
2018-10-14 00:38 PDT, EWS Watchlist
no flags Details
Patch (41.40 KB, patch)
2018-10-16 11:50 PDT, Timothy Hatcher
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews107 for mac-sierra-wk2 (3.86 MB, application/zip)
2018-10-16 13:40 PDT, EWS Watchlist
no flags Details
Patch (45.74 KB, patch)
2018-10-16 13:46 PDT, Timothy Hatcher
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy Hatcher 2018-10-12 10:36:46 PDT
To know when to allow semantic colors to switch between dark and light mode, as well as form controls, we need a way for the page to tell us what color schemes they support.

Proposal is to add: <meta name="supported-color-schemes" content="light dark">
Comment 1 Radar WebKit Bug Importer 2018-10-12 10:37:12 PDT
<rdar://problem/45230140>
Comment 2 Simon Fraser (smfr) 2018-10-12 11:21:47 PDT
What's the standardization story here?
Comment 3 Timothy Hatcher 2018-10-12 13:05:52 PDT Comment hidden (obsolete)
Comment 4 EWS Watchlist 2018-10-12 14:18:32 PDT Comment hidden (obsolete)
Comment 5 EWS Watchlist 2018-10-12 14:18:34 PDT Comment hidden (obsolete)
Comment 6 EWS Watchlist 2018-10-12 14:28:50 PDT Comment hidden (obsolete)
Comment 7 EWS Watchlist 2018-10-12 14:28:52 PDT Comment hidden (obsolete)
Comment 8 EWS Watchlist 2018-10-12 15:26:16 PDT Comment hidden (obsolete)
Comment 9 EWS Watchlist 2018-10-12 15:26:28 PDT Comment hidden (obsolete)
Comment 10 Timothy Hatcher 2018-10-12 15:30:39 PDT Comment hidden (obsolete)
Comment 11 EWS Watchlist 2018-10-12 16:04:43 PDT Comment hidden (obsolete)
Comment 12 EWS Watchlist 2018-10-12 16:04:45 PDT Comment hidden (obsolete)
Comment 13 Dean Jackson 2018-10-12 16:30:59 PDT Comment hidden (obsolete)
Comment 14 EWS Watchlist 2018-10-14 00:38:10 PDT Comment hidden (obsolete)
Comment 15 EWS Watchlist 2018-10-14 00:38:12 PDT Comment hidden (obsolete)
Comment 16 Timothy Hatcher 2018-10-15 12:21:51 PDT Comment hidden (obsolete)
Comment 17 Timothy Hatcher 2018-10-16 11:50:51 PDT Comment hidden (obsolete)
Comment 18 EWS Watchlist 2018-10-16 13:40:00 PDT Comment hidden (obsolete)
Comment 19 EWS Watchlist 2018-10-16 13:40:02 PDT Comment hidden (obsolete)
Comment 20 Timothy Hatcher 2018-10-16 13:46:41 PDT
Created attachment 352498 [details]
Patch
Comment 21 WebKit Commit Bot 2018-10-16 14:54:05 PDT
Comment on attachment 352498 [details]
Patch

Clearing flags on attachment: 352498

Committed r237204: <https://trac.webkit.org/changeset/237204>
Comment 22 WebKit Commit Bot 2018-10-16 14:54:07 PDT
All reviewed patches have been landed.  Closing bug.