EduFlow
Modern CSS Mastery

Checkpoint: The Cascade, for Real

Five questions on this section. Answer all of them, then see your score and why each answer is right or wrong.

Question 1 of 5

What color is the link?

CSS
@layer base, components;
@layer components {
  .btn { color: white; }
}
a { color: blue; }
HTML
<a class="btn" href="#">Buy tickets</a>
Question 2 of 5

Both rules target <h3 class="title"> inside .card. Which color wins?

CSS
:where(.card) .title { color: green; }
.title { color: red; }
Question 3 of 5

A card’s glow should grow on hover with transition: --glow 300ms, using box-shadow: 0 0 var(--glow) violet. The glow jumps instead of animating. What fixes it?

Question 4 of 5

The markup is <label class="field">Email <input type="email"></label>. Which selector styles the label while its input has focus?

Question 5 of 5

Inside a nested .session-card rule, which selector targets the card itself when it also has the class is-live?

CSS
.session-card {
  /* ??? */ { border-color: red; }
}

5 questions unanswered