Chrome Will Allow Sites to Check Your OS Dark Mode Settings
#1
Quote:Google Chrome and Mozilla Firefox will soon support a new CSS media query called 'prefers-color-scheme' that let's sites know whether you prefer a dark mode, light mode, or have no preference.
 
In a post to Chromium's blink-dev mailing list, Chromium developer Rune Lillesveen has stated that they plan on releasing support for the the prefers-color-scheme media query in Chrome 76. 
 
This media query will allow web sites to see what color preference is configured on visitor's operating system.
 
"Support the media query feature 'prefers-color-scheme' from Media Queries Level 5 to let authors adapt web content to user-selected themes in the OS or browser. For instance by selecting dark instead of light appearance in MacOS. Keywords: 'light', 'dark', 'no-preference'."

Using this query, sites can automatically use a dark mode theme if your OS is configured to use one as well, making the site, browser, and operating synchronized in color preferences.

SOURCE: https://www.bleepingcomputer.com/news/so...-settings/
[-] The following 3 users say Thank You to silversurfer for this post:
  • Deep900, harlan4096, ismail
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Recent Posts
QOwnNotes
26.3.7  Fixed an ...Kool — 08:09
KeePassXC 2.7.12
KeePassXC 2.7.12: ...harlan4096 — 07:38
Google Chrome 146.0.7680.71/72
Google Chrome 146....harlan4096 — 07:36
uBlock Origin 1.70.0
uBlock Origin 1.70...harlan4096 — 07:18
Opera 128.0.5807.66
Hello! Opera st...harlan4096 — 07:17

[-]
Birthdays
Today's Birthdays
avatar (38)ykazawu
Upcoming Birthdays
avatar (44)gapedDow
avatar (38)snorydar
avatar (43)Hectorvot
avatar (51)knowhanPluts
avatar (39)Williamengiz
avatar (46)qaqapeti
avatar (44)battsourIonix
avatar (43)CedricSek
avatar (39)chasRex
avatar (33)uteluxix
avatar (47)piafcflene
avatar (39)Matthewkah
avatar (51)tersfargum
avatar (50)alfreExept
avatar (38)Charlesfibre
avatar (42)napasvem
avatar (44)diploJeoca
avatar (38)francisnj3
avatar (43)artmaGoork
avatar (41)RichardCisee

[-]
Online Staff
There are no staff members currently online.

>