- From: François REMY <francois.remy.dev@outlook.com>
- Date: Fri, 6 Sep 2013 00:49:23 +0200
- To: "www-style@w3.org" <www-style@w3.org>, "stearns@adobe.com" <stearns@adobe.com>
- CC: "lmcliste@adobe.com" <lmcliste@adobe.com>
Some clarification of the css-shapes-1 spec (regarding how to interpret a percentage value used as a circle radius) would be welcome, I guess, for people trying to implement the spec. Indeed, it seems to me it is not specified whether the percentage is considered from the width direction or from the height direction, or form any other kind of reference. My own implementation used the width direction for consistency with ellipse but it would probably just be better to disallow percentage-defined radius for circles. Relevant text from the spec: circle([<length>|<percentage>][, [<length>|<percentage>]]{2}) The three values values represent cx, cy, and r. They define the x-axis and y-axis coordinates of the center of the circle and the radius of the circle. A negative value for r is invalid. For what it's worth, I'm not quite sure why there's a need for circle function when we could simply consider as a circle an ellipse with 3 arguments, but I guess it's for the sake of consistency with SVG. Best regards, Francois
Received on Thursday, 5 September 2013 22:49:49 UTC