Re:You might not need JavaScript
by pmlnr on Wednesday October 12, 2016 @05:16AM
(#12691428)
Compile time requirements and runtime requirements are different things.
[ Parent
| on HN ]
My 100$ smartphone came from a 5B$ factory.
You could go the other way just as easily, and eliminate the css requirement. Doesn't mean it's the best way to do a given thing.
Also, the examples don't support a lot of use cases... the accordian and tab examples, while interesting will submit goofy information if they're containing multi-part forms.
The image changer will break other bits of navigation, or similar changers by abusing the target. Similarly, the lightbox example doesn't have a slideshow support, and even if so, would probably be as/more complex than just using JS.
Also, how many of these examples work in IE11? This browser will be around a while for public facing sites, and has some really broken implementations of newer css features like calc (which doesn't work in several scenarios).
Amen. If you are really good at CSS, you might play to that strength. Or, you might play to different strengths. There's probably more than one way to do it in many cases that doesn't hurt the project.