by jdashg · 1y ago · 0 comments
There are two approaches these days though: https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/W...
I'm aware of those, it's just sad nothing is nailed as a standard. Those are two workarounds unfortunately. A browser API not supported on Apple Safari and pixel-presnap with JS doing the CSS px calculation backwards + snapping and even that code has an extra branch to fix a macOS+Chrome bug. The whole situation smells of duct tape.