- From: andruud via GitHub <sysbot+gh@w3.org>
- Date: Fri, 11 Apr 2025 07:38:56 +0000
- To: public-css-archive@w3.org
> Proposing: Make `<url>` type (`attr(name type(<url>))`) invalid in `attr()` during parse time. I know I originally said: > I wouldn't object to just making it invalid (parse-time). But now that we have [argument grammars](https://drafts.csswg.org/css-values-5/#argument-grammar), I think we should drop the "parse time" part. Otherwise, to enforce a check against the type() _parse time_, we would have to make `type()` part of the argument grammar, meaning e.g. `attr(name type(var(--my-type)))` is impossible forever, which is sad. The [spread syntax](https://drafts.csswg.org/css-values-5/#spread-syntax) would also need to be invalid in `attr()`. I would amend the proposed resolution as follows: `Make <url> type (attr(name type(<url>))) invalid in attr()`, leaving "when" it's invalid up to the general rules in [Argument Grammars and Spread Syntax](https://drafts.csswg.org/css-values-5/#early-resolution). This still fully addresses the original concern. -- GitHub Notification of comment by andruud Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5079#issuecomment-2796101064 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 11 April 2025 07:38:57 UTC