- From: Roman Komarov via GitHub <sysbot+gh@w3.org>
- Date: Thu, 13 Jun 2024 11:08:35 +0000
- To: public-css-archive@w3.org
I just want to clarify that for ```CS --foo: empty; /* <- Declarative absence of a value. */ color: var(--foo, hotpink) /* Resolves to `hotpink` */ ``` It will still resolve to `--foo`, just explicitly. A good use case outside the space toggles is when we want to have a “placeholder” of sorts inside a shorthand. I wrote a post with one example like that here: https://blog.kizu.dev/space-toggle-placeholders/ Re: the name itself, as this will be a CSS-wide keyword, and essentially allowed _anywhere_, we need something less generic than `empty`. Maybe something like `guaranteed-valid`, `valid-empty`? `empty-placeholder`? Something else? The goal of the value is to make the declarations like `--foo: guaranteed-valid` or `var(--foo, guaranteed-valid)` more explicit and easy to understand compared to `--foo: ;` or `var(--foo,)`. -- GitHub Notification of comment by kizu Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10441#issuecomment-2165339199 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 13 June 2024 11:08:36 UTC