Menu

I asked a chat app for a CSS specificity cheat sheet, then checked every row against MDN
📰

I asked a chat app for a CSS specificity cheat sheet, then checked every row against MDN

DEV Community: beginners·Kai Mercer·7 days ago
#rGyRUZPU
#devtobeginners#devto#dev#header#selector
Reading 0:00
15s threshold

I do marketing for HelloAI ( https://tryhello.app ), the app in this test. Insider test, not a neutral review. Short version: I asked for a CSS specificity cheat sheet, it produced an editable document, and every claim in it survived a check against MDN. Here is exactly what it gave me, and the check.

The prompt

Make me a CSS specificity cheat sheet with about 10 worked examples. For each example selector, show its specificity as a-b-c (ID, class, type) and one line on why. Include at least: a plain element selector, a class, an ID, an attribute selector, a pseudo-class like :hover, a :not() with an argument, a descendant selector, a combined selector like ul#nav li.active, an inline style case, and an !important case.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.