[csswg-drafts] [css-values] Non-zero mod() (#9693)

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

== [css-values] Non-zero mod() ==
Although I originally proposed the `mod()`/`round()` functions, I have not used them much in CSS yet. (They also have not shipped in Chrome and Edge yet.) I recently had to use modulo functions in other languages a lot, though. I realized I often needed the result to be between 1 and _x_ and not between 0 and _x_−1. You can get that by abstracting and adding back an offset, but it looks clumsy. 

I am now wondering whether CSS authors would also frequently prefer to get non-zero results from `mod()` and also `rem()`. 
If they do in fact, it would be nice to get this behavior by adding a keyword parameter. 

(I considered to re-question why the behavior of `rem()` is not achieved in the same way, but that is probably a späteste issue and now too late to change anyway.)

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


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

Received on Sunday, 10 December 2023 15:04:38 UTC