W3C home > Mailing lists > Public > www-style@w3.org > September 2013

[css-shapes-2] Auto-height and shapes sizing constraints

From: François REMY <francois.remy.dev@outlook.com>
Date: Wed, 4 Sep 2013 01:15:48 +0200
Message-ID: <DUB120-W28310D76B71798A6A9F38EA5310@phx.gbl>
To: "www-style@w3.org" <www-style@w3.org>
CC: "stearns@adobe.com" <stearns@adobe.com>
In the current Shapes Level 2 spec, there's a paragraph that says:

  When a shape-inside has a definite size (no percentages used in the shape's definition) an auto-sized element should use the shape as a constraint in determining its maximum size. 



I propose to change that to

   An auto-sized element should use the shape as a constraint in determining its maximum size. In the case of auto-sized elements, values expressed as percentages in the auto-sized direction resolve to 0px to avoid cyclic dependency. 



because 

   (1) 0% still makes sense in all cases and 
   (2) you may want to use percentages for (fixed) width and px values for (auto) height and still get the expected behavior
   (3) otherwise what happens when the percentages are used in such a way that the shape doesn't grow when the element grows is not defined in the spec (ie: the element should become infinitely high)




Regards,
Francois 		 	   		  
Received on Tuesday, 3 September 2013 23:16:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 3 September 2013 23:16:15 UTC