It looks like style() container queries are enabled in @firefoxnightly - this is one of the features I'm looking forward to most. Especially with range queries starting to roll out.
@ container style(--progress > 80%) {
background: green;
}
It looks like style() container queries are enabled in @firefoxnightly - this is one of the features I'm looking forward to most. Especially with range queries starting to roll out.
@ container style(--progress > 80%) {
background: green;
}
The at-rule has to query a parent element, but the eventual inline if(style()) combo doesn't have that limitation.
background: if(
style(--progress > 80%): green;
else: red
);
More from @Una here: https://una.im/range-style-queries/