News for hackers. Stuff that matters.
Re:Constraint CSS by chton on Friday July 04, 2014 @12:15PM (#7989330)
How does this work with changing style from Javascript? Can I change constraints at runtime and have the entire page be recalculated? I'm not familiar with the Cassowary solver, can it do partial invalidation? or would it need to recalculate the entire layout if only a minor part changes?
Re:Constraint CSS by d4tocchini on Friday July 04, 2014 @12:35PM (#7989410)
It keeps things up to date with DOM changes using Mutation Observers & it does so intelligently so it won't redisplay whole page.

Cassowary is an incremental solver & is optimized for adjusting constraints in runtime.

Re:Constraint CSS by chton on Friday July 04, 2014 @12:38PM (#7989424)
Awesome, that's what I hoped to hear. I'll definitely be trying it out then, anything over CSS :p