You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in #235, the rule that SVG rect, circle, and ellipse do not render when any of the key geometric sizing properties are zero is inconsistent with the behavior for their equivalent path.
For example, a path that draws out a zero-height rectangle would still get stroked as a line. A path consisting of zero-length arc commands would still be stroked as a single line-cap dot. Markers on the shape would also render as normal (albeit with multiple markers super-imposed on the same points!).
It was therefore suggested by @BigBadaboom that it would be useful to provide some sort of switch to authors, that could make these degenerate shapes render like their equivalent paths. SVG WG members on the telcon discussing that issue agreed that this was a nice "future wish list" feature.
The text was updated successfully, but these errors were encountered:
PS, any change or new property for one-dimensional shapes should also apply for embedded elements, all of which also have the same rule about zero width/height disabling rendering. There is no equivalent path consistency for these elements, but there could be filter effects.
Furthermore, as Lea Verou discovered (tweet, demo), browsers are currently inconsistent about zero width/height impact on <foreignObject>. Firefox follows the spec and disables rendering, but Chrome just treats it as a zero height/width container element, and allows absolutely positioned child elements to overflow.
As discussed in #235, the rule that SVG rect, circle, and ellipse do not render when any of the key geometric sizing properties are zero is inconsistent with the behavior for their equivalent path.
For example, a path that draws out a zero-height rectangle would still get stroked as a line. A path consisting of zero-length arc commands would still be stroked as a single line-cap dot. Markers on the shape would also render as normal (albeit with multiple markers super-imposed on the same points!).
It was therefore suggested by @BigBadaboom that it would be useful to provide some sort of switch to authors, that could make these degenerate shapes render like their equivalent paths. SVG WG members on the telcon discussing that issue agreed that this was a nice "future wish list" feature.
The text was updated successfully, but these errors were encountered: