News for hackers. Stuff that matters.
Re:MyHTML – HTML Parser on Pure C with POSIX Threads Support by leeoniya on Saturday March 12, 2016 @12:04AM (#11271483)
cool project!

flex-box is a mostly self-contained and powerful spec (if i understand correctly).

however, when you don't need to account for floats, relative layout, mixed box-sizing, negative margins, complex overflow conditions and interaction with a ton of older specs, you vastly simplify the problem space for yourself.

it makes perfect sense for a modern system but is quite far from a general impl that can compute layout from html+css unconditionally. the article starts with:

"Once I got an X idea, but its implementation required a calculated DOM with all its styles and goodies"

so the goal is not "the most useful subset". flexbox is currently the least-used (& least supported) layout, so for the author's purposes which sounds like scraping existing markup would not help very much.

There are no comments on this comment yet.