GoSuB Browser Progress, pt32
I've did some tree-walking on the document in order to render text rudimentary on the screen. It works mostly for simple layout sites like hackernews. As soon as positioning comes into play, the renderer fails (obviously). I also made the walker to accept a visitor, which allows you to do an "enter_element" and "leave_element" call. I use this to render text found in a 'a' element blue, which makes it look like an almost real rendering of the site :)
I'm currently working on the CSS style computations. I've found some very good reading material about how to do this so it makes sense to spent some time in getting this up and running. It's the next step in getting the whole pipeline ready for rendering. Hopefully, we can soon iterate the node tree and discard not only elements that are not renderable, but also nodes that are hidden through css..
About jaytaph
Codemuser extraordinaire
Joined: | March 24, 2023 |
Following: | 2 |
Followers: | 2 |
Posts: | 52 |
Comments: | 3 |
Upvotes: | 4 |
Previous musings
- (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