- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Tue, 24 Apr 2012 18:26:03 -0700
- To: "www-style@w3.org" <www-style@w3.org>
Tab and I have been working through the flexbox algorithm this week. We're not quite done double-checking our work on the main algorithm, but the Resolving Flexible Sizes section has gotten an editorial overhaul, and we've fixed some errors in it as well. I'm writing this email to ask Alex, dholbert, Ojan, and anyone else interested for a review. http://dev.w3.org/csswg/css3-flexbox/#resolve-flexible-lengths The changes were primarily editorial, except for the the last step: 1. Fixed error in freezing of violations: min and max had been swapped. 2. Clarified which items are reset and which remain frozen. Right now if you hit the 'zero' clause, freezing is cumulative across iterations; for 'positive' only min violations are frozen, and for 'negative' only max violations are frozen. 3. The zero clause only exits if the free space is also zero. Previously you could exit with undistributed free space. 4. Loop begins with determining the sign of the flexibility again. This is necessary if freezing violations flips the sign of the free space. I'm a little unsure on #2, but the others definitely fix certain cases that don't otherwise make sense. ~fantasai
Received on Wednesday, 25 April 2012 01:32:31 UTC