Replies: 2 comments 1 reply
-
I can't answer your questions, I have never yet read that part of the chromium code, I know where it is but I have never looked into it.
try looking at the official tests https://wpt.live/css/mediaqueries, the ones starting with ‘prefers-colour-scheme’. |
Beta Was this translation helpful? Give feedback.
-
FYI Edit: Sorry, I guess I have found one which does not play as intended: When my Android theme is light, the script test works as intended: With Android light theme, I switched chrome://flags/#enable-force-dark to ON and I could make the test fail the other direction; |
Beta Was this translation helpful? Give feedback.
-
I would like to apply changes in user.js based on the browser's site-specific Dark Theme setting. My goal is to adjust site behavior dynamically based on this theme setting.
However, the common method of detecting the theme preference:
is not sufficient, as it only detects the operating system's theme preference and not the browser's site-specific theme setting.
Could you clarify:
Any insights or guidance on achieving this functionality would be greatly appreciated.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions