-
Notifications
You must be signed in to change notification settings - Fork 756
Description
https://drafts.csswg.org/css-env-1/
What are the current ideas being pitched to add custom env() variables via CSS?
To add custom env() variables, could a similar syntax be used as seen in custom media and custom selectors?
@custom-env --some-width 30em;Or what other issues might there be?
Should it work on a rule level, so you can insert arbitrary stuff into a rule, like reusing a block of declarations?
While I feel like the answer should be “not yet”, if the answer to this question is yes, could syntax like @media (curly braces) be used?
@custom-env --some-centering {
align-items: center;
justify-content: center;
}As for JS, I hope that can be resolved separately via Houdini, because I’m under the impression there are still many things to work out with the similar concept of custom properties (as well as shorthands which apply to both, or selectors and rulesets that could apply to env()) .