[csswg-drafts] [css-values] mod() isn't needed (#6637)

nmoucht has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-values] mod() isn't needed ==
* Currently the mod function that the spec dictates is a weird combination of multiple math functions that I don't believe exists in any language. When the input arguments have the same sign, mod() behaves as the C function fmod, and when they have different signs, it behaves as the C function remainder. There is no need to be more expressive than javascript, which only has the `%` operator, so there is no reason to have any additional functions for this beyond rem(). At the very least, mod() should be modeled after an existing math function, such as C's remainder. 

* https://drafts.csswg.org/css-values-4/#round-func


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6637 using your GitHub account


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

Received on Saturday, 18 September 2021 01:01:26 UTC