Re: [csswg-drafts] [css-forms-1] For `control-value()` to be useful it needs a way to convert to other types. (#11842)

@cdoublev 
> Would it then be reasonable for it to take `<syntax-type-name>`? with string as its default?

No, because like I said, this is *not* doing CSS parsing on a value. The element has *already* parsed its value in an HTML-specified way, and is holding onto both a parsed and a string form of it. We just need to indicate which version of the value we want, in a way that tells CSS what that type is going to be at stylesheet parse time. Thus, the handful of specialized keywords.

@sorvell 
> Just want to confirm that for % we mean the percent of the value between min and max

Yup, that's what I meant too. 👍 

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


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

Received on Friday, 14 March 2025 19:12:18 UTC