- From: <bugzilla@jessica.w3.org>
- Date: Mon, 12 Mar 2012 08:19:04 +0000
- To: public-css-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16322
Summary: same-sign flexibility in flexing algorithm
Product: CSS
Version: unspecified
Platform: PC
URL: http://dev.w3.org/csswg/css3-flexbox/
OS/Version: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: Flexbox
AssignedTo: alexmog@microsoft.com
ReportedBy: alexmog@microsoft.com
QAContact: public-css-bugzilla@w3.org
CC: dbaron@dbaron.org, alexmog@microsoft.com
Current flexing algorithm choses to use either positive or negative flexibility
for all items, which helps to ensure it will finish with any combination of
flexibility and min/max sizes. This approach doesn't allow to optimize layout
by shrinking a large item that is far from both its min and its max sizes, and
growing a small item that is close to its preferred size. It may be possible to
get a better result by calculating penalties based on actual size change,
flexibility settings and where there calculated size is relative to
min/max/preferred sizes.
Example to consider:
<flexbox>
<div style="flex:1 1 auto">long description of something important that is
about to happen</div>
<button style="flex:1 1 auto">I agree</button>
</flexbox>
--
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Monday, 12 March 2012 08:19:09 UTC