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

Polyfill #19

Open lukewarlow opened 10 months ago

lukewarlow commented 10 months ago

Just a quick note on how much of this could be polyfilled for older browsers.

Can be polyfilled:

Cannot be polyfilled:

Unfortunately @media is one of the main benefits of this API.

lukewarlow commented 10 months ago

Based on https://github.com/GoogleChromeLabs/container-query-polyfill it may be possible to transpile the preference media queries for <style> and same-origin <link> elements