-
Notifications
You must be signed in to change notification settings - Fork 62
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
feat: CSS contains support #2744
Conversation
dcd3caf
to
f050956
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another native feature scoped, hurray! 🚀
443aaa2
to
71bf024
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks amazing!
I don't think I saw usage of css custom properties in a query...but I saw that it is using "eval"
value.
The params do go through In any case, the native support for this is not there at the moment: https://chromestatus.com/feature/5076875399921664 |
Offline discussion update: to bring the behavior more inline with custom properties and allow easier and more predictable global definition of container names:
|
- containers export value - `d.ts` support + source maps
71bf024
to
1dbfd05
Compare
- change container decl to soft definition - st-global just keeps value without creating a symbol - new `@container` atrule with no body do define a symbol
This PR adds support for CSS containers
container
symbol fromcontainer-name
andcontainer
declarations@container
at-rulest-global
supportcontainers
exportsd.ts
+ source maps