Complete the code to declare a container query in Sass.
@container [1] (min-width: 30rem) { color: blue; }
The @container rule is used to start a container query block in Sass.
Complete the code to define a container with a name for queries.
.card {
container-type: inline-size;
container-name: [1];
}The container name must be an unquoted identifier (<custom-ident>), so use main without quotes.
Fix the error in the container query syntax.
@container (min-width [1] 40rem) { background: lightgray; }
The correct syntax for container queries uses a colon ':' between the feature and value.
Fill both blanks to create a container query that applies styles when the container's width is less than 50rem.
@container [1] ([2]: 50rem) { font-size: 1.2rem; }
The @container rule starts the query, and max-width means styles apply when width is less than the value.
Fill both blanks to create a container query that applies styles when the container named 'sidebar' has a width greater than 20rem.
@container (container-name: [1] && [2]: 20rem) { padding: 1rem; }
container-name condition.Use (container-name: sidebar && min-width: 20rem); the container name is an unquoted identifier, and min-width targets widths greater than or equal to the value. Combine conditions with &&.