DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
CSS Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
CSS
What must be true for a `@container` query rule to have any effect?
A
The element being styled must have `position: relative`
B
An ancestor element must have `container-type` explicitly set, opting itself in as a query container
C
The page must have only one container query on it
D
Nothing extra is needed, @container works like @media automatically
Check Answer