Wednesday, 16 October 2024

[netsurf-users] Re: Netsurf CSS support.

On 17 Oct 2024, at 2:56, John Rickman wrote:

Not sure what you want to do but here is an example of a simple two column
web page layout using html and css that works with NetSurf [...]

Useful as that is, it's just using very basic CSS floats that have existed since CSS 1. If NetSurf didn't support that kind of thing, just about nothing would work at all.

I can find a mailing list post reviewing early flexbox support from 7 years ago! LibCSS used by NetSurf gained Flexbox support in v0.8.0; it's currently on v0.9.2. NetSurf itself mentioned "improved" support in v3.11 from Dec 2023.

The NetSurf home page itself uses absolute positioning, fixed widths and float hackery to make itself work. We can't use that as an example.

I tried a few pages with some flex stuff on with wildly varying results. Too much relies on JavaScript for just basic page layout these days as web dev gets ever more screwed up... Best thing you can do is try it. Since NetSurf 3.11 is available on everything except macOS, but works fine in Wine or Crossover so you can run the Windows port on macOS anyway, it should be easy to get going and try things out.

--
TTFN, Andrew Hodgkinson
Find photos, software, music and more at my home site, Bandcamp and GitHub:
https://pond.org.uk / https://pondnz.bandcamp.com / https://github.com/pond

No comments:

Post a Comment