New issue
Advanced search Search tips
Starred by 55 users

Issue metadata

Status: Started
EstimatedDays: ----
NextAction: ----
OS: Android , Windows , Chrome , Mac
Pri: 2
Type: Feature

issue 925935
issue 925949

Sign in to add a comment

Issue 889087: Add support for CSS prefers-color-scheme media feature

Reported by, Sep 25

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:62.0) Gecko/20100101 Firefox/62.0

Steps to reproduce the problem:
Try to use prefers-color-scheme media query.

What is the expected behavior?
prefers-color-scheme media query should report the user's preference about the OS color scheme.

What went wrong?
prefers-color-scheme media query is ignored.

Did this work before? No 

Does this work in other browsers? No
 This is a new media query added to CSS Media Queries Level 5 to utilize the dark mode preference operating systems provide.

Chrome version: <Copy from: 'about:version'>  Channel: n/a
OS Version: OS X 10.14
Flash Version: 

Link to spec:

Comment 1 by, Sep 26

Labels: Needs-Milestone

Comment 2 by, Sep 26

Labels: -Type-Bug Type-Feature

Comment 3 by, Sep 30

Labels: -Pri-2 Pri-3
Status: Available (was: Unconfirmed)

Comment 4 by, Oct 31

Support for this has arrived in Safari Technology Preview 68.

Comment 5 by, Oct 31

cc ellyjones@ re: our conversation earlier this week about interaction of dark mode and which system colors we give to Blink

Comment 6 by, Nov 11

Might as well branch this out to Windows

Win32 apps listen on:


Windows WPF/UWP apps use:


Comment 7 by, Jan 4

Labels: -Pri-3 Pri-2
Status: Assigned (was: Available)

Comment 8 by, Jan 5

Status: Started (was: Assigned)

Comment 9 by, Jan 5

Labels: OS-Android OS-Chrome OS-Windows

Comment 10 by, Jan 9


Comment 11 by, Jan 10

Project Member
The following revision refers to this bug:

commit 7959d13749d4d965ad6a08767e3d28dabe262d03
Author: Rune Lillesveen <>
Date: Thu Jan 10 10:16:28 2019

Support for prefers-color-scheme media feature.

The preferred color scheme can be passed to the renderer through
Settings, but there is no code in content changing it from the default
value yet.


Intent to Implement:!topic/blink-dev/Muw0N43ntSw

Bug: 889087
Change-Id: I859de2953966640baed57ee6d4a5edcbabf9e999
Commit-Queue: Rune Lillesveen <>
Reviewed-by: Chris Harrelson <>
Reviewed-by: Eric Willigers <>
Cr-Commit-Position: refs/heads/master@{#621528}

Comment 12 by, Jan 24

+dbeam as a heads-up for WebUI

Comment 13 by, Jan 26

+lgrey and +robliao for primary/secondary UI

Comment 14 by, Jan 28

Blockedon: 722548
How does this related to  bug 722548 ? Can we dedup?

Comment 15 by, Jan 28

I don't think that they are related. 889087 should not block 722548, IMO.

Comment 16 by, Jan 28

Blockedon: -722548
Sorry, I totally misread the title of 722548. Removing.

Comment 17 by, Jan 28

Blocking: 925935

Comment 18 by, Jan 28

Blocking: 925949

Sign in to add a comment