Re: [csswg-drafts] [css-mediaqueries] Expose User Preference Media Queries as HTTP Client Hint or HTTP Header (#4162)

Apple/WebKit is pretty strongly against this.

- This gives pixel-tracking and other non-JS fingerprinting techniques even more data.

- These media queries are supposed to be dynamic, in that the page should change when the user updates their preference. The idea of only shipping a subset of your CSS and JS means that you'll have to hit the network if e.g. the user swaps from dark to light mode. And you'll have to write JS code in your page to fetch the new style.

- For an initial page load, the amount of extra CSS to support both light and dark mode is inconsequential.

- It will make some caching more difficult. If the user preference changes, the caching code now needs to know what things to redownload.

-- 
GitHub Notification of comment by grorg
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4162#issuecomment-528136403 using your GitHub account

Received on Wednesday, 4 September 2019 23:49:18 UTC