DioxusLabs / blitz

High performance HTML and CSS renderer powered by WGPU
Apache License 2.0
2.06k stars 40 forks source link

Add a screenshot of a basic website #23

Open SkyfallWasTaken opened 1 year ago

SkyfallWasTaken commented 1 year ago

It would be nice to see the progress of blitz by showing it render a basic website (perhaps one of the websites on nocss.club?)

ealmloff commented 1 year ago

Having a few real world example demos built up to show what you can build with Blitz and screenshots of them in the readme would be a great addition!

It could also be interested to have a "goal app" implemented in Dioxus web or desktop (hacker news?) for Blitz to work towards

nicoburns commented 1 year ago

Unfortunately Blitz currently (or soon) implements what are considered "advanced" layout modes from the perspective of the web (Flexbox and CSS Grid) but not the "basic" ones (block/inline and table layout). And I'm also not sure what state Blitz' text rendering is in. So it might be difficult to find websites that it can render well.

I looked at Hacker News as Taffy demo. But unfortunately it uses table layout, which might make it tricky. The tables spec is... not small https://www.w3.org/TR/css-tables-3/. It would definitely be possible to recreate though. And perhaps that might be a worthwhile excercise?

nicoburns commented 1 year ago

I would suggest the following as the minimum viable feature set for rendering a website:

Then as part of the demo itself we'd ideally want:

Extension tasks:

Normalize.css (https://necolas.github.io/normalize.css/8.0.1/normalize.css) would also be a sensible target to track. Also https://css.tobyase.de

nicoburns commented 1 year ago

Sciter's CSS support might also be a useful point of comparison:

nicoburns commented 1 year ago

I've started working on Block layout in Taffy here: https://github.com/DioxusLabs/taffy/pull/474.

nicoburns commented 1 year ago

https://alistapart.com/ could be a possible target to aim for. It would require the ability to resolve CSS selectors / stylesheets and will exercise quite a few layout/styling paths, but it works well without JS.

nicoburns commented 4 months ago

https://alistapart.com/ definitely has some issues, but it is also very much recognisable...

Screenshot 2024-06-14 at 09 47 05 Screenshot 2024-06-14 at 09 47 18
nicoburns commented 4 months ago

Blitz rendering it's own README:

Screenshot 2024-06-12 at 16 16 06
nicoburns commented 4 months ago

https://servo.org

Screenshot 2024-06-12 at 11 28 55
nicoburns commented 2 months ago

Screenshot 2024-07-30 at 16 31 15