Art of doubt
Texts and Code by soal
α

I build software for the Web and Free Desktop and talk about it here. Mostly Web frontend, HTML/CSS/JS/TS, Elm, Rust, Linux.

Mail, GitHub, CV.

writings

November 1 2026

If you're using font with non-standard proportions then strike-through decoration might look incorrect:

Line is too high

I guess that technical height of the font is different from the visual height of the symbols and browser use former to position the line.

You can fix it with this trick:

s {
  text-decoration-line: underline;
  text-underline-offset: -.5ex;
  text-decoration-skip-ink: none;
}

Now it looks right:

Line is in the right place

The most important thing here is -.5ex. CSS unit ex is equal to height of x symbol in the current font, exactly the parameter we need to correctly position the line.


November 25 2025

Alex Russell published his annual The Performance Inequality Gap, 2026. Must read for everyone in the webdev industry. It would be interesting to see data for regional markets, but I'm not aware of publicly available work like that.

His recommendations for hardware to test web apps are brutal:

Regarding devices, my updated recommendations are the Samsung Galaxy A24 4G (or equivalent) and the HP 14. The goal of these recommendations is to emulate a 75th percentile user experience, meaning a full quarter of devices and networks will perform worse than this baseline.

That HP 14 laptop?

Tech specs
Intel Celeron N4500 (1.1GHz) Processor
4GB DDR4-2933 RAM
64GB eMMC Storage

Try to run your Next application on that.


October 29 2025

Performance.now() is one of the conferences that still worth your time. Fundamental things, deep dives, speakers who has something to say. Many others turned into just marketing events (I'm looking at you, VueConf. And almost everything regarding React)