News for hackers. Stuff that matters.
Re:If Web Components are so great, why am I not using them? by s17n on Thursday August 03, 2023 @04:34AM (#36983002)
> I'm telling you that's a terrible, awful idea, because it breaks the fundamental way CSS is supposed to work.

The "way CSS is supposed to work" was always a bad idea and is totally unworkable for large projects / teams. Throwing it out and simply inlining all your styles is absolutely the right call.

Re:If Web Components are so great, why am I not using them? by kerkeslager on Thursday August 03, 2023 @11:41AM (#36987391)
Eh, there's some validity to that, but the worst of both worlds is to have both a CSS file and then a bunch of inline styles, which is what people here are proposing.

Inline styles make a lot of sense if you're using webcomponents pervasively, but there's a high up-front cost to doing that because you'll have to either a) define web components for everything you might want to style, including existing elements like <p>, or b) repeat yourself a lot.