WICG / web-preferences-api

The Web Preference API aims to provide a way for sites to override the value for a given user preference (e.g. color-scheme preference) in a way that fully integrates with existing Web APIs.
https://wicg.github.io/web-preferences-api/
Other
41 stars 2 forks source link

Convenience: requestOverride with values null or "" should call clearOverride #31

Closed FremyCompany closed 1 year ago

FremyCompany commented 1 year ago

I think it would be convenient if requestOverride called with null or an empty string would skip the validValue selection, and clear the override (if any exists at the moment).

lukewarlow commented 1 year ago

Makes sense, I'll do an update to the spec that incorporates this.