-
In the Deterministic resolution section, it is mentioned that in StyleX "The last style applied always wins.". Does this also work for declarations within media queries? For example, if I have the following code: const md = '@media (min-width: 769px)';
const styles = stylex.create({
base: {
padding: {
default: 20,
[md]: 40,
},
},
extended: {
paddingBlockEnd: 120,
},
}); When applying the styles to the element as follows: <div {...stylex.props(styles.base, styles.extended)}> I expected the When I include the same media queries as follows, the const styles = stylex.create({
base: {
padding: {
default: 20,
[md]: 40,
},
},
extended: {
paddingBlockEnd: {
default: 120,
[md]: 120,
},
},
}); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This is the expected bahavior.
This seems like a bug. Let me investigate. |
Beta Was this translation helpful? Give feedback.
I just tried to reproduce this issue and it's working as expected. You're like on v0.3.0 and seeing this issue during development. The issue is specific to the runtimeInjection of styles in 0.3.0 AFAIK.