CSS Painting API
developer.mozilla.org
developer.mozilla.org
https://os.90s.dev/#sys/apps/paint.app.js
https://github.com/sdegutis/os.90s.dev/blob/31bf4ec46e02367b...
But yours is much fancier and cooler.
https://developer.chrome.com/docs/css-ui/houdini
Anyone remembers the CSS rendering extensions on IE 5?
That's right, the more things change, the more they stay the same.
Also, as far as I have seen, people have been using WebAssembly for complex stuff and marshalling it to the main thread for the canvas.
Scrolling is about scroll snapping feature.
> to set complex custom backgrounds on an element
Basically the same reasons you might need draw() in traditional GUIs.
Do this in CSS: https://camo.githubusercontent.com/b6c45f60f6e450574c4087589...
(image taken from the other guy's comment's gh repo)
https://developer.mozilla.org/en-US/docs/Web/API/CSS_Paintin...
While in Sciter, that has such immediate mode rendering form the very beginning, you can simply draw them as:
resizableElement.paintForeground = function(gfx) { // draw on top of background & content
let box = this.getBoundingClientRect();
gfx.moveTo(...); gfx.lineTo(...);
gfx.moveTo(...); gfx.lineTo(...);
...
}
Easy, right? And does not need to modify DOM and place artificial positioned elements.