Re: [whatwg] HTML inputs directly toggling CSS classes on elements?

2017-09-10 Thread Jonathan Zuckerman
class names are meant to be a tiny wormhole which connects the worlds of content (HTML), presentation (CSS), and behavior (JS) - I think this suggestion begins to widen that rip, and it's inadvisable. It's a question of taste I guess, just which behaviors are primitive enough to not require

Re: [whatwg] HTML inputs directly toggling CSS classes on elements?

2017-09-10 Thread Roger Hågensen
On 2017-09-09 18:41, Alex Vincent wrote: A few days ago, I dipped my toes into web design again for the first time in a while. One of the results is the CSSClassToggleHandler constructor from [1]. Basically, it takes an radio button or checkbox, and turns that input into a toggle for a CSS

[whatwg] HTML inputs directly toggling CSS classes on elements?

2017-09-09 Thread Alex Vincent
A few days ago, I dipped my toes into web design again for the first time in a while. One of the results is the CSSClassToggleHandler constructor from [1]. Basically, it takes an radio button or checkbox, and turns that input into a toggle for a CSS class on another element. This is relatively