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

The `change` event is useful to synchronize a color scheme selector with an external state change.

We have the following theme selector:

```html
<select name="colorScheme">
  <option value="system">System</option>
  <option value="light">Light</option>
  <option value="dark">Dark</option>
</select>
```

We use the `change` event to change the value of the `<select>` element. This change event may be triggered by various places in the UI. For example there may be a theme selector in both the user settings page and the navigation bar. We can’t detect when the value should change to `system`.

-- 
GitHub Notification of comment by remcohaszing
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13613#issuecomment-4016950455 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 17:12:57 UTC