Chapter quiz · Modern CSS

Test what you learned.

8 questions on Modern CSS. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Modern CSS — Chapter Quiz

Eight questions on custom properties, calc, has, color functions, dark mode.

0/ 8
  1. Question 1
    1

    How do you read a custom property --brand?

  2. Question 2
    2

    Custom properties can be updated at runtime from JavaScript.

  3. Question 3
    3

    What does clamp(1rem, 2vw, 1.5rem) evaluate to on a 768px wide viewport?

  4. Question 4
    4

    Which selector matches a <form> that contains an element with class error?

  5. Question 5
    5

    :where() and :is() match the same elements, but they differ in specificity.

  6. Question 6
    6

    To detect the user's preferred color scheme, use…

  7. Question 7
    7

    What does @layer reset, base, components, utilities; do?

  8. Question 8
    8

    To replace margin-left with a writing-direction-aware property, use margin-inline-______.

Pick an answer — instant feedback as you go.