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

Is this addressing any usecase not covered by #1026 and #542? Because I would prefer to address these with a specific solution for them.

Also it's not clear if converting string to number will accept scientific notation, leading/surrounding whitespace, strings like `"calc(1 + 3)"`, etc.

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

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


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

Received on Thursday, 29 August 2024 12:04:10 UTC