Квиз по HTML & CSS: z-index & Stacking Contexts

This CSS quiz covers how the browser decides which element paints on top. It goes through when z-index applies, what creates a stacking context, the painting order inside one, and the classic bugs where a huge z-index still loses.

Сложный 10 вопроса ~8 минуты Проходной балл: 80%

Выберите режим

Вы играете как гость: войдите, чтобы сохранить XP и серию.

Пример вопроса

Вопрос 1 из 10

On which of these elements does z-index: 10 have no effect?

Показать ответ

C. A normal block with default position: static, in normal flow z-index applies to positioned elements and to flex and grid items. A static block in normal flow ignores it.

Что проверяет этот квиз

  • When z-index has an effect
  • What creates a stacking context: z-index, opacity, transform, isolation...
  • Why children cannot escape their parent's stacking context
  • Painting order and source order
  • Negative z-index

Частые вопросы

Нужен ли аккаунт?

Нет. Играть может любой. Войдите, чтобы сохранять XP, серию, значки и историю.

Можно пройти ещё раз?

Да. Лучший результат сохраняется, а вопросы и ответы каждый раз перемешиваются.