|
|
|
|
|
by UenoHDTV80
3011 days ago
|
|
Yeah i don't get this sentiment but i see it a lot here. Not a programmer but have coded websites since the early days. Css aint perfect but as long as youre not doing extremely complex layouts, its easy. You could learn enough css to get by in 2 hours. But for whatever reason, programmers don't bother to learn it, and that's how you get stuff like React. |
|
I currently use Vue and I scope as much CSS as possible.
In case you're not seeing a problem with cascading, let me give you a scenario. It's not a scenario everyone will run into but in a sense it's the same problem in every CSS project. This is just a very concrete example.
When you create a UI that is supposed to be added to a web page (think browser extension) you have to manually override every single possible CSS attribute to make the styling consistent across web pages.
The shadow DOM is the first thing that helps this, but it's still not popular enough to use.