Gosub Browser Progress, pt43

Last updated at 2025-03-16 11:27:52 (2 weeks ago)

The rendering pipeline PoC seems to work as it should be. It can take a html (and css) stream and turn it into pixels on a screen. But obviously, there are a lot of issues that we need to take care of.

For instance, we cannot center text correctly. Taffy doesn't work with inline elements, so we need to do this manually, and i'm still trying to figure out how that would work. Also, we run into trouble when we have to deal with static or fixed elements. Fortunately this should be an easy fix, as we are now able to move elements onto their own layer which gets composited at the end of the pipeline. If we keep that layer static (ie: doesn't change position when scrolling).. the compositor should automatically take care of this for us.

I still want to make sure we can deal with a few of these cases before we think of moving the pipeline into the main Gosub engine. Also we need to wait until we have a more finished CSS system that would fit better into the pipeline.

So for the next couple of weeks probably, i will be playing around with the pipeline. I'm actually using this perticular site to do some rendering tests, and to be honest, I think the rendering is actually quite nice already.

And before I forget.. it seems to play nicely with different components and renderers as well.. BOth vello and cairo work, as do pangocairo and parley for text alignment. I think there is skia as well which I might try to implement if I get bored.

gosub

About jaytaph

Codemuser extraordinaire

avatar Loves building crazy and insane stuff. Happiest when left alone. All I wanted was a Pepsi, just a Pepsi.
Joined:March 24, 2023
Following:3
Followers:3
Posts:56
Comments:3
Upvotes:5
RSS feed