javascript - Why do HTML/SVG Coordinate 0,0 starts at top left corner? -
javascript - Why do HTML/SVG Coordinate 0,0 starts at top left corner? -
just wondering whats reasoning behind saying 0,0 top left corner in browser both html/svg? there advantage this?
it goes against conventional wisdom (classic geometry) y values become greater in value lower on screen.
because that's how css predates svg works.
in cases, such stand-alone svg documents or svg document fragments embedded (by reference or inline) within xml parent documents parent's layout determined css [css2] or xsl [xsl], initial viewport coordinate scheme (and hence initial user coordinate system) has origin @ top/left of viewport, positive x-axis pointing towards right, positive y-axis pointing down,
javascript html svg
Comments
Post a Comment