Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>Those that tend to hate the cascade tend to fight the browser a lot, whether they realize it or not. Generally speaking, they want things to work a certain way (IE everything in isolation) and prefer to think of styles isolated bits.

So, wouldn't that be the browser fighting them, then?

They want something specific, and the broswer forces a paradigm upon them that they don't want.

They are the humans and the browser (well, the styling language of the browser) is the tool that should accomondate them, not the other way around.



This is a sane argument. I have no objection to it. Both things are true, in a sense.

It really depends on how you view the browser, IE should browsers be more adaptive to certain paradigms or should it set a reasonable paradigm and enforce it? I don’t know that there is a 100% right answer in this case, though they have moved to create better hooks for some forms of isolation (e.g. layers, scoping) but they fundamentally haven’t walked away from the cascade aspect.

It’s converging the two paradigms, for sure, but as I said, I don’t think either is wholly incorrect or correct.

Now if you wanted my opinion on the whole thing, I think the cascade is a fundamental element to be leveraged not avoided, but that’s me.


If someone picks up a hammer and struggles to pound screws in with them, it’s not the hammer that’s defective.

I don’t think CSS is the perfect tool for all browser-based styling but it’s the tool that’s there and it’ll probably work a lot better if you use it the way it’s intended to be used. If you want a screwdriver instead of a hammer… you have options (don’t target a browser, propose an alternative to CSS, use something that compiles down to CSS).


>If someone picks up a hammer and struggles to pound screws in with them, it’s not the hammer that’s defective.

If someone wants to hammer nails and they're given a blender, then the blender might not be defective, but it surely is not the right tool for the job, and it's imposed upon them.

Few people ever loved CSS. The majority always either hated it or learned to tolerate it. Most who do CSS today use a few different paradigms on top to make them tolerable like BEM, or use different transpilers to get a better language, or directly control styling from code, with CSS-in-JS libraries or like React does it.

>I don’t think CSS is the perfect tool for all browser-based styling but it’s the tool that’s there

Sure, I never denied its existance. Just its design.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: