Get the latest tech news

Infinite Pixels


In which I push browser engines to their finite limits using infinite values.

By which I mean, if I hand a browser values that are effectively infinite by way of the infinity keyword, it will necessarily end up clamping to something finite, thus revealing how far it’s able or willing to go for that property. Instead, the actual font size of the text, as judged by the Box Model diagram on the Layout tab, is… 2,400 pixels. Line Height ResultsBrowserComputed valueLayout valueSafari33,554,42833,554,428Chrome33,554,40033,554,400Firefox (Nightly)17,895,7008,947,840Essentially, the results were the same as what happened with element widths in the first example: Safari and Chrome were very close to 2 25-1, and Firefox had its thing of a strange computed value and a rendering size not quite half the computed value.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Infinite Pixels

Infinite Pixels