Get the latest tech news
To Infinity but Not Beyond
More explorations of ways to abuse the CSS `infinity` keyword, this time with more than just lengths.
Previously on meyerweb, I explored ways to do strange things with the infinity keyword in CSS calculation functions. Consistency across Firefox, Chrome, and SafariVisually, these all came to exactly the same result, textually speaking, with just very small (probably line-height-related) variances in element height. The results here led me to an assumption that browsers (or at least the coding languages used to write them) use a system where any “infinity” that has multiplication, addition, or subtraction done to it just returns “infinite”.
Or read this on Hacker News