Re: [csswg-drafts] CSS Toggles Proposal (#6991)

Great proposal! It would be great if the concept of "element state" could also have an intuitive interface across HTML / CSS / JavaScript, such that HTML could define these states with simple attributes (other than just in the `style` tag, since it's not just a styling concern), and JS could update them with a simple interface. Similar to how `checked` has a simple interface across HTML / CSS / JavaScript. i.e. Like a `checked` state, many of these toggle states and their associated values would have utility across things like submitting form-field values (submitting the toggle value), or a state within a component to be accessed / set by JS, etc.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 12 April 2022 00:48:21 UTC