FR version is available. Content is displayed in original English for accuracy.
Advertisement
Advertisement
⚡ Community Insights
Discussion Sentiment
94% Positive
Analyzed from 745 words in the discussion.
Trending Topics
#https#css#layout#com#github#grid#used#blitz#project#clay

Discussion (26 Comments)Read Original on HackerNews
I am currently in the process of building a wider browser engine / GUI toolkit on top of it (https://github.com/dioxuslabs/blitz). As part of that I am implementing a lot of the messier parts of CSS layout (floats, etc), and also grinding on fixing all the WPT tests which we track here: https://blitz.is/status/wpt/css/css-flexbox.
The vision is a complete standalone implementation of the web layout algorithms that can be easily embedded (with individual algorithms enabled/disabled on a pay what you use basis), and which can also be part of a modular ecosystem of browser engine components that make it easier for people to create new browser engines.
Beyond Blitz, some notable users are:
- Servo which uses it only for CSS Grid
- Zed which uses it via it's GPUI toolkit.
The results have been fantastic. Thank you for this awesome library. I love it.
https://www.npmjs.com/package/kittyhtml
https://github.com/kkukshtel/kittyhtml
https://dictionary.cambridge.org/dictionary/english/taffy
https://www.walesonline.co.uk/news/wales-news/theres-still-m...
I can't pretend I've heard anyone use it since the 80s.
I know the CSS people were painted into a box by legacy, but the design of both grid and flex honestly seem like the products of uniquely deranged minds. Unfathomable. Something like WPF’s grid is just as powerful as CSS grid but it doesn’t give you a mental disorder trying to understand it.
Explore other layout ideas. E.g. https://stackoverflow.com/questions/53911631/gui-layout-algo...
... opens the SO link
yeah there's no answer to it (even if someone does, it would likely be closed by 5 others)
EDIT: Was wrong, see reply to this comment, need my coffee...still not a good excuse
The real inspiration is https://github.com/react/yoga (as used by React Native). Stretch was originally a Rust port/rewrite of Yoga.
An associated project: https://github.com/DioxusLabs/anyrender does take a lot of inspiration from Clay's "drawing commands"