- From: herrstrietzel via GitHub <noreply@w3.org>
- Date: Tue, 14 Jul 2026 17:06:48 +0000
- To: public-svg-issues@w3.org
Pardon me, but `cx` and `cy` as applied to `<circle>` and `<ellipse>` are only affecting the position of the element. So negative values are by no means invalid or unusual – as opposed to negative `r`, `rx` and `ry` attributes – which are geometrically/logically kinda nonsensical (similar case `width` and `height`). In other words: a general rule for all circle/ellipse related presentation attributes doesn't really fit here. All in all `cx` and `cy` serve a similar purpose like `x` and `y` position attributes and don't really need extra handling for negative values. Speaking of these negative radii "oddities". The current fallback handling – converting e.g `rx:-50` to `0` is slightly inconsistent with regards to the behavior in elliptic arc commands for `<path>` elements. In pathdata negative radii are converted to positive values. This could be explained by the end-point parametrization of arc commands. <img width="772" height="293" alt="Image" src="https://github.com/user-attachments/assets/a5b4d367-813b-48d5-b353-16d2010d932e" /> See also [codepen example](https://codepen.io/herrstrietzel/pen/wBgjdyR?editors=1111) -- GitHub Notification of comment by herrstrietzel Please view or discuss this issue at https://github.com/w3c/svgwg/issues/1145#issuecomment-4971887951 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Tuesday, 14 July 2026 17:06:49 UTC