Container query order is not preserved.
Author: chbybnwrCreated Aug 6, 2026Updated Sep 27, 2026
Labelsbug
Describe the issue
Container query order is not preserved.
Expected behavior
enableMediaQueryOrder but for container query
Steps to reproduce
input:
const styles = stylex.create({
foo: {
color: {
default: null,
'@container (width >= 640px)': 'green',
'@container (width >= 1280px)': 'red',
},
}
})output:
@container (width >= 1280px) {
.x {
color: green;
}
}
@container (width >= 640px) {
.y {
color: red;
}
}Test case
No response
Additional comments
No response
Source: facebook/stylex