Loading…
Loading…
Twenty-five questions on the edge cases that surprise experienced developers: invalid custom properties, shorthands that reset values, layer order with !important, containing blocks, margin collapsing, specificity of :is() and :where(), intrinsic minimum sizes, and more, each checked in Chrome.
This quiz collects the surprising corners of CSS covered across the CSS course: rules that work exactly as specified, but not as most people expect.
Questions with code were checked in Chrome, in an empty page with only the browser's default styles (so body has an 8px margin and text is black). Aim for at least 18 out of 25.
Quiz path: step 20. Take the quizzes in this order, after reading each article.
Previous quiz: CSS Interview Questions
25 questions · pass at 70%
Check your understanding; you see the answers and explanations after submitting.
Discussion
Sign in to ask a question or share what you learned.