According to MDN (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/y2) > If the attribute is not specified, the effect is as if a value of 0 were specified But current output value of the missing attribute is "undefined"