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.
Currently this API is limited to just allowing an override from pre-existing values. At least in the case of color-scheme it's possible that people may want to set a custom colour scheme.
Currently this API is limited to just allowing an override from pre-existing values. At least in the case of color-scheme it's possible that people may want to set a custom colour scheme.
Raised in: https://kilianvalkhof.com/2022/css-html/on-better-browsers-arbitrary-media-queries-and-browser-uis/#overwriting-known-media-queries
Would this be desirable?
How would these values get paired up to browser UA styles for stuff such as scrollbars and form inputs?
Potentially this would be a whole separate proposal on its own that this one could just allow you to set the value from?