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

Re: [css-shapes] Handling large corner radii values for rectangle and inset-rectangle

From: Alan Stearns <stearns@adobe.com>
Date: Tue, 11 Jun 2013 14:14:10 -0700
To: Bem Jones-Bey <bjonesbe@adobe.com>, W3C WWW Style <www-style@w3.org>
Message-ID: <CDDCE0F1.2BAC9%stearns@adobe.com>
On 6/7/13 3:06 PM, "Bem Jones-Bey" <bjonesbe@adobe.com> wrote:

>The current CSS Shapes draft[1] says that if the corner radii for
>rectangle and inset-rectangle follow the rules for corner radii for the
>SVG rect basic shape[2]. In the case of the radii being large enough that
>they would intersect, the SVG spec says that the radii in question should
>be clamped to 50% of it's associated rectangle edge (rx gets clamped to
>50% width, ry gets clamped to 50% height). However, CSS Backgrounds and
>Borders defines a different rule for CSS border radius for this
>situation[3]. It seems like it would make the most sense for CSS Shapes
>to use the same behavior as border-radius to be consistent with the
>expectations of authors. What do you think?
>- Bem
>[1]: http://dev.w3.org/csswg/css-shapes/
>[2]: http://www.w3.org/TR/SVG/shapes.html#RectElement
>[3]: http://www.w3.org/TR/css3-background/#corner-overlap

I agree. I've switched the corner overlap solution to use the CSS method
instead of the SVG method.


Received on Tuesday, 11 June 2013 21:14:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:31 UTC