You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@layer reset, preflights, layout, atom // This doesn't work: compile error at `,`// These work fine because of how stylus handles unknown @-rules@layer reset
@import'reset'@layer preflights
@import'vars'@import'common'@layer layout
@import'layout'@layer atom
@import'atom'
Current behavior:
Cannot compile @layer reset, preflights, layout, atom because of an unexpected character.
Sorry it's a super nitpiky issue because the workaround is super simple. I just thought it should be supported thanks to how much of a lifesaver css layers are by ignoring all specificity.
The text was updated successfully, but these errors were encountered:
To reproduce:
Current behavior:
Cannot compile
@layer reset, preflights, layout, atom
because of an unexpected character.Can be worked around by using a css literal:
Expected behavior:
It should be able to compile like in this example.
Environment information:
stylus
version:0.61.0
nodejs
version:v18.18.2
Sorry it's a super nitpiky issue because the workaround is super simple. I just thought it should be supported thanks to how much of a lifesaver css layers are by ignoring all specificity.
The text was updated successfully, but these errors were encountered: