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

I've updated [my suggestion](https://github.com/w3c/csswg-drafts/issues/6408#issuecomment-2317424601) to include the use case for converting to `<integer>`, incorporated some feedback and added a few more details.

> Also not a fan of just dropping units. Converting `2em` into `2` is better achieved with `calc(2em / 1em)`.

This is debatable. As an author, I'd expect `2em` to be convertible to a number or integer, making the conversion resilient. Though I don't have a strong opinion about this.

Sebastian

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


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

Received on Monday, 2 September 2024 20:47:54 UTC