Re: [csswg-drafts] [css-variables][css-mixins] In-place hygienic rewriting? (#14004)

At the risk of scope-creep, it would be nice for developers to be able to wholesale declare properties are safe to elide for tools like minifiers; if we could also guarantee that, for e.g. they aren't exposed in OM. `@locals` certainly looks like something a minifier could reasonably shrink down (so the author retains reuse but shipping CSS can swap out for the underlying component values). 

One way could be to add `@property --foo { private: true }` or some such. This would guarantee that declarations of, say, `:root { --foo: 1; }` don't appear in the JS OM.

-- 
GitHub Notification of comment by keithamus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/14004#issuecomment-5022611567 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 20 July 2026 13:11:03 UTC