1. What creates a new stacking context in CSS?
- position: relative
- z-index: auto
- opacity less than 1
- float: left
Reveal sample answer and explanation
Answer: opacity less than 1
An element with opacity less than 1 creates a new stacking context.
This CSS Advanced Quiz is designed for experienced frontend developers who want to validate deep CSS knowledge. It focuses on advanced layouts, performance, browser behavior, accessibility, and real-world interview-level CSS challenges.
The question bank contains 44 questions. Your scored round uses up to 15 different questions. These samples are excluded from your round; try each one before opening its answer and explanation.
Answer: opacity less than 1
An element with opacity less than 1 creates a new stacking context.
Answer: transform
transform animations are GPU-accelerated and performant.
Answer: Changing width
Changing width affects layout and triggers reflow.