facebook / facebook/stylex

Container query order is not preserved.

Open
#1,798 1 comment 3 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
10.3k
Forks
481
Avg merge
3d 8h
Merged PRs (30d)
13

Description

### Describe the issue

Container query order is not preserved.

### Expected behavior

enableMediaQueryOrder but for container query

### Steps to reproduce

input:
```js
const styles = stylex.create({
foo: {
color: {
default: null,
'@container (width >= 360px)': 'green',
'@container (width >= 420px)': 'red',
},
}
})
```

output:
```css
@container (width >= 420px) {
.x {
color: green;
}
}

@container (width >= 360px) {
.y {
color: red;
}
}
```

### Test case

_No response_

### Additional comments

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.