Re: [csswg-drafts] [css-selectors] Improve the usefulness of specificity of Tags & IDs (#4690)

Thanks, @Loirooriol, for your answer.

My point is that the CSS “specificity” is not really inutitiv, and it rewards over-determined selectors and leads to HTML code wich is cluttered with classes and IDs. [My website](https://ThomasGutmann.de) has easy HTML and almost non design and still I stumbled over the problem where I couldn’t style a specific element because of other selectors.
Your example presuppose that I know about the one #my-foo when writing the general selectors, but an easy KISS (“Keep it simple, stupid!”) approach with the CSS basics should lead to the target, too.
The new introduced mechanics seem like workarounds to me.
Kind Regards,
Thomas

-- 
GitHub Notification of comment by ThomasGutmann
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4690#issuecomment-1410979160 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 31 January 2023 19:57:28 UTC