-
Notifications
You must be signed in to change notification settings - Fork 756
Open
Description
The spec currently reads (emphasis mine):
Once an eligible query container has been selected for an element, each container feature in the
<container-condition>is evaluated against that query container.
Applied to the example below, both conditions will be evaluated against wrapper
.wrapper {
container-name: wrapper;
}
.wrapper > .child {
container-name: child;
--responsive: true;
}
@container wrapper size(inline-size > 30em) and style(--responsive = true) {
.wrapper > .child {
/* styles */
}
}What I want to have size(inline-size > 30em) be evaluated against wrapper and style(--responsive = true) against child (or any other wrapping container) ?
Would it be feasible to pursue something like the snippet below, where it's allowed to set a <container-name> for each <container-query>?
/* Evaluate size() against wrapper, and evaluate style() against child */
@container wrapper size(inline-size > 30em) and child style(--responsive = true) {
.child {
/* styles */
}
}brandonmcconnell