- From: andruud via GitHub <sysbot+gh@w3.org>
- Date: Fri, 16 May 2025 13:00:21 +0000
- To: public-css-archive@w3.org
> > By the way, this means `ident("--foo" counter(...))` won't be possible. > > And what about (with `--c` registered as a `<number>`) the following? > > --c: counter(c); > some-name: ident("--foo-" var(--c)); `counter()` doesn't return a number, it ["represents"](https://drafts.csswg.org/css-lists/#counter-functions) a string. But even if `--c` is registered as a `<string>`: we do not (and can not) generally allow the result of `counter()` where `<string>` is allowed, because counters are understood layout time. > > Maybe not quite the same case, but would it also apply to e.g. z-index:sign(10%)? (Percentages having no meaning for z-index.) > > No, that case is fine, because the % doesn't resolve against anything so it's taken as-is, and the `sign()` returns `1`. I don't think it's fine. But it's a separate issue, https://github.com/w3c/csswg-drafts/issues/12204. -- GitHub Notification of comment by andruud Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12192#issuecomment-2886657757 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 16 May 2025 13:00:22 UTC