Transformed media queries leave gaps between breakpoints
Author: chbybnwrCreated Sep 25, 2026Updated Sep 27, 2026
Labelsenhancement
Describe the feature request
Take this create call:
const styles = stylex.create({
foo: {
gridColumn: {
default: '1 / 2',
'@media (width >= 48rem)': '1 / 3',
'@media (width >= 64rem)': '1 / -1',
},
},
});It is now transformed at compile time to:
const styles = stylex.create({
foo: {
gridColumn: {
default: '1 / 2',
'@media (width >= 48rem) and (width <= 63.99rem) ': '1 / 3',
'@media (width >= 64rem)': '1 / -1',
},
},
});It should be transformed to:
const styles = stylex.create({
foo: {
gridColumn: {
default: '1 / 2',
'@media (width >= 48rem) and (width < 64rem) ': '1 / 3',
'@media (width >= 64rem)': '1 / -1',
},
},
});Source: facebook/stylex