Re: [csswg-drafts] [css-values] Type conversion functions (#6408)

Thank you for pointing me at #1026, @Loirooriol!

For my current use case, a `counter-value()` function would suffice, too.

Though I still believe general type conversion functions would have some value and would make the conversion explicit.
@upsuper's point about the phase at which conversion should happen is important, of course. If they are meant to work everywhere, I guess they need to do the conversion at used value time.

Note that general conversion may also be used for functions returning a number like the discussed  [`random()` function](https://github.com/w3c/csswg-drafts/issues/2826) or all the [mathematical expressions](https://drafts.csswg.org/css-values-4/#math). And other type conversions like from angles to numbers or the other way round also may have their use cases.

Sebastian

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


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

Received on Sunday, 27 June 2021 23:31:13 UTC