4 ms·
As an aside but still relevant question, why is CSS preferred over JS when these days it can do lots of things like JavaScript and probably uses similar resourc
by smusamashah 8mo ago
As an aside but still relevant question, why is CSS preferred over JS when these days it can do lots of things like JavaScript and probably uses similar resources.
- Minor49er 8mo agoCSS and JavaScript specialize in two very different areas and are commonly used in tandem
- soperj 8mo agoYou can do layouts with javascript? Couldn't imagine ever wanting skip grid and flexbox for whatever has been concocted up for JS.
- tracker1 8mo agomulti-window interfaces in the browser... simulating a desktop, or other user navigable environment such as in a game or simulation, where a user my want to customize their environment beyond a grid snap.
- ReaderOfRunes 8mo agoThe issue then becomes how do you make it accessible to screen readers? It's not impossible, just very tedious and requires cross browser and cross-device testing
- tracker1 8mo agoWhile I understand the concern... Not everything ever made needs to be fully accessible to everyone. That said, there are already aria labels for UI contexts such as modal windows. Desktop OSes are already multi-modal.
- sublinear 8mo agoI agree. This seems like it would make more sense as a canvas library unless there's a use case I'm not understanding.
- jtokoph 8mo agoI think there is value in making it a declarative model
- Waterluvian 8mo agoIf I understand this, it’s all vector space. So it avoids one of the most irritating issues with working with canvas. I love not having to think about scale or resolution or aliasing.
- k33n 8mo ago1. This isn’t CSS. It’s a declarative JS drawing framework with CSS flavor to the syntax 2. Without actual CSS JavaScript wouldn’t be of much use for drawing much of anything unless you were just going to use canvasses and forego the DOM entirely