DEV Community

Discussion on: Is CSS objectively bad?

Collapse
 
stereobooster profile image
stereobooster

The biggest problem people have with CSS is that it's not strictly coupled with HTML. There's no contract saying that inside a div with class foo you're allowed to present a p tag but never an a tag. This isn't XHTML and there's no DTD here.

I like your direction of thought. But at the same time, from layout/paint engine point of view, this is a bunch of rectangles to draw... The problem from my point of view is "global-ness" of CSS selectors (by tag name, nested selectors, specificity, inherited/not inherited properties).