Gosub Browser Progress, pt43
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.
About jaytaph
Codemuser extraordinaire

Joined: | March 24, 2023 |
Following: | 3 |
Followers: | 3 |
Posts: | 56 |
Comments: | 3 |
Upvotes: | 5 |
Previous musings
- (1) March 2025
- (1) February 2025
- (2) January 2025
- (2) December 2024
- (1) November 2024
- (1) October 2024
- (1) September 2024
- (1) July 2024
- (2) February 2024
- (3) January 2024
- (3) December 2023
- (4) November 2023
- (5) October 2023
- (10) September 2023
- (8) August 2023
- (1) June 2023
- (1) May 2023
- (4) April 2023
- (5) March 2023