[csswg-drafts] [mediaqueries-5] Ability to detect a preference override being cleared (#13613)

remcohaszing has just created a new issue for https://github.com/w3c/csswg-drafts:

== [mediaqueries-5] Ability to detect a preference override being cleared ==
I’m implementing a little demo of a dark mode toggle as part of #43276. While doing so, I noticed that the `change` event isn’t fired if the old override matches the UA provided value.

In other words, `change` fires if `value` changes, not if `override` changes.

It would be useful to detect changes of the `override` value. This is needed for example to update a dark mode toggle which has the option `System default`.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13613 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 7 March 2026 12:58:52 UTC