Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS custom property not transformed correctly in @media and :vars #2318

Open
idoros opened this issue Feb 7, 2022 · 0 comments
Open

CSS custom property not transformed correctly in @media and :vars #2318

idoros opened this issue Feb 7, 2022 · 0 comments
Labels
bug Unexpected behavior or exception core Processing and transforming logic

Comments

@idoros
Copy link
Collaborator

idoros commented Feb 7, 2022

Actual Behavior

var(--x) used within both @media and :vars definitions is not being collected as a weak definition and even worse when CSS symbols do exist for var() used within @media and :vars, only :vars are namespaced - @media doesn't namespace internal CSS custom properties.

Expected Behavior

var(--x) should be collected as symbols weak definitions out of both @media and :vars definitions and transformed accordingly

Version

@stylable/core@4.10.3

Additional Context

playground

@idoros idoros added bug Unexpected behavior or exception core Processing and transforming logic labels Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected behavior or exception core Processing and transforming logic
Projects
None yet
Development

No branches or pull requests

1 participant