3 ms·
Is that a problem with the browsers not providing functionality that should be standard or is it a problem of custom components that need the JS for the dev to
by BeFlatXIII 4y ago
Is that a problem with the browsers not providing functionality that should be standard or is it a problem of custom components that need the JS for the dev to specify how they work?
- krono 4y agoNot entirely sure if I fully understand your question. To clarify, these CSS hacks often use checkbox inputs for isomorphic state management and that is simply incompatible with the semantics those elements are designed and expected to represent. ECMAScript is a browser standard and was specifically invented for adding interactivity like toggling a hamburger menu. Yes it's also used for less savoury business but that's not the end-user's fault and shouldn't be made into their problem.
- agileAlligator 4y ago> To clarify, these CSS hacks often use checkbox inputs for isomorphic state management and that is simply incompatible with the semantics those elements are designed and expected to represent. The one mentioned in the article, does not use checkboxes. It uses functionality built into HTML itself
- bobthepanda 4y agobrowsers do provide that functionality, just with JS. CSS is not designed, to be something you're supposed to write Doom in even though you can. It hasn't been really updated with the purpose of 'obviate javascript' because the browsers don't really want to do that.