The blog post about this is slightly interesting, but mostly feels like a candidate’s position paper on rounded corners, rather than an newsworthy or technical explanation: https://medium.com/@makalin/reclaiming-the-screen-a-develope...
The core innovation is the ctx.fill calls here: https://github.com/makalin/CornerFix/blob/main/Sources/Corne...