Re: [csswg-drafts] [CSS-localMemory-rule] CSS needs rule references to localMemory values, to be responsive to user input. (#4933)

This should be addressed when we add custom media queries; on page load you can query `localStorage` yourself and set the MQs accordingly.

It wouldn't be appropriate for CSS to directly interface with `localStorage`; that is one of *many* ways to store local state in a page. (And in general, one of the less good ones, due to it providing sync access to a potentially-slow storage backend.)

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

Received on Thursday, 9 April 2020 19:19:27 UTC