News for hackers. Stuff that matters.
Re:Flipboard releases React Canvas by Nitramp on Tuesday February 10, 2015 @03:56PM (#9029843)
The hardest part is actually layout managers, i.e. what happens if you want to support more than one pixel width. With all its clunkiness, CSS & DOM actually solve that.

edit: they actually have their own layout implementation(s). I wonder how those compare to the built in browser versions (performance, correctness, ...)?

https://github.com/Flipboard/react-canvas/blob/master/lib/La...

Re:Flipboard releases React Canvas by jlongster on Tuesday February 10, 2015 @04:11PM (#9029926)
It's css-layout: https://github.com/facebook/css-layout. The same engine used in React Native. It turns out that you only need a portion of CSS for apps. It's very performant.
Re:Flipboard releases React Canvas by mortenjorck on Tuesday February 10, 2015 @04:25PM (#9030006)
Huh. Using a reimplemented, minimal CSS engine would mean more or less baked-in cross-browser compatibility, right?
Re:Flipboard releases React Canvas by jlongster on Tuesday February 10, 2015 @04:40PM (#9030106)
Yes, but it's hard to do your own layout on the web because in times that want to width of an element that has text with `flex: 0`, you can't do that. It's mainly useful for things like this where you control everything.