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

Yes, CSS should directly interface with localStorage values OR similar, alternative settings memory, **because user style settings are set in there.**  Read-only access is OK for that.


It's the job of the CSS to comply with the style rules that the user selected and saved.

In the current state, we are left to use the JavaScript to do the job of the CSS, when we need to remember and set the same CSS class rules for user preferences, and set them again on every page load by JavaScript, instead of directly making style rules that refer to the  localStorage values for the user style settings.


It's NOT about the  localStorage  itself. Could be any other memory storage. It's about the access to style setting values that were made by the user.






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

Received on Thursday, 9 April 2020 19:57:47 UTC