Re: [csswg-drafts] [css-values-4] Switch advanced attr() to being var()-like (#4482)

@heycam [pointed out](https://github.com/w3c/csswg-drafts/issues/4482#issuecomment-553238181) back in 2019 something I think got lost in the subsequent conversation:

> I do find it a little odd that the second argument to `attr()` names CSS syntax types and other operations like dimension value construction, and how e.g. `string` means take the literal string content and turn it into a `<string>` token, while `number` means to parse the attribute value as a `<number>` token. I'm half wondering whether it makes sense to align with the syntax used for custom property registration for things like the latter.

This is a great point. `@property ... { syntax: ...; }` and `attr(... ...)` should use the same syntax for referring to CSS syntax types.

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


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

Received on Friday, 9 February 2024 18:14:31 UTC