CSS Infinity: A Curious Journey Through Browser Interpretations

2025-08-21
CSS Infinity: A Curious Journey Through Browser Interpretations

This article explores the quirky behavior of the `infinity` keyword in CSS calculation functions. By applying `infinity` to properties like `text-indent`, `word-spacing`, and `letter-spacing`, the author discovers inconsistencies in how different browsers handle infinite values, although the visual results consistently lead to horizontal overflow. More intriguingly, when used with `z-index`, the computed value of `infinity` is capped at the maximum integer value across browsers, resulting in unexpected stacking order. Finally, the author experiments with `infinity` for animation duration, finding that it translates to extremely long times, even causing Safari to render the page unresponsive. In short, the experiment reveals the different strategies browsers employ in handling infinite values in CSS and some surprising side effects.

Read more
Development

Probing Browser Limits with Infinite CSS Values

2025-08-08
Probing Browser Limits with Infinite CSS Values

The author experimented with setting element width and height to `calc(infinity * 1px)` in CSS to explore how different browser rendering engines handle infinite values. Chrome and Safari capped the value at approximately 33,554,400 pixels. However, Firefox Nightly exhibited unusual behavior; height was limited to the text line height, while width reached millions of pixels, yet the layout width was roughly half. Further tests with font size and line-height revealed similar discrepancies, with Firefox's rendering drastically different from other browsers. The author speculates on the reasons for these oddities and invites readers to provide explanations.

Read more
Development

A Decade of Grief: Unbearable Loss

2025-02-14
A Decade of Grief: Unbearable Loss

Sixteen years ago today, the author's second daughter was born; ten years ago today, she died on her sixth birthday. The piece describes the author's reflections on this day, the day his daughter would have turned sixteen, a decade after her death. The author visits her grave and attends a final memorial service at Anshe Chesed Fairmount Temple, a place that held special meaning for her, before its closure adds another layer of sadness. The author confesses that a decade later, the pain of losing his daughter persists, and the guilt of feeling he 'failed his child in the most fundamental way' remains.

Read more
Misc loss