Do browsers treat negative width on SVG <rect> as zero or as an error for geometry APIs?
When an SVG element receives a negative width or height value, the SVG 2 specification marks the value as an error and states the shape should not render. In practice, implementations differ on whether the element remains in the DOM with a zero-size geometry box or is treated as an erroring element that geometry and hit-testing APIs ignore. The distinction m