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”.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Infinity

Infinity

Related news:

News photo

Orders of Infinity

News photo

Grappling with Infinity in Constraint Solvers

News photo

To infinity — and beyond! Nokia to extend 4G wireless to the Moon