For anyone else who didn't know - we have modulo in #CSS (for real! no need to emulate it https://css-tricks.com/using-absolute-value-sign-rounding-and-modulo-in-css-today/ anymore! π)
See π https://developer.mozilla.org/en-US/docs/Web/CSS/mod
Supported cross-browser since mid-May '24. Support test for CSS mathematical functions/ const https://codepen.io/thebabydino/pen/yLRBJXP
See π https://developer.mozilla.org/en-US/docs/Web/CSS/mod
Supported cross-browser since mid-May '24. Support test for CSS mathematical functions/ const https://codepen.io/thebabydino/pen/yLRBJXP
Comments
But hey, at least we have actual uses for trigonometry in CSS this time. π
input{
background-color: expression(this.readOnly ? "grey" : "white");
}
And filters looked like this:
.rotated{
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
Yet IE6 couldn't support transparency in PNGs. π