
Generic SVG User Unit A term defined by the SVG specification: a unit length in the current user coordinate system. Often unit is used when one should use unit identifier. To better understand the following discussion it is necessary to have well defined terms to describe which unit is being talked about. It should be noted that the relative units em, ex, and % can be As 'px' is defined in SVG to be the same as a user unit the following are equal: font-size="20" and style="font-size:20px". In CSS a unit identifier must be present. "real" world value of the SVG user unit.) This reflect the opinion of ViewBox determines an appropriate scale for a drawing.

The root width and height may have units, which with a proper Eventually, after long arguments, the CSS working group dictated that one inch would be fixed to 96 pixels regardless of screen resolution (ironically, with so called Retina displays, there is once again interest in scaling drawings based on DPI).Ībsolute units (other than 'px' inside CSS) should not be used inside an SVG file with one exception: Thus, the use of "real" units never became popular and in reality it is usually not what one wanted. Display manufactures rarely provided the means to query the DPI of the display, and when they did, they often returned incorrect results. This required that displays be queryable as to what their true DPI was. In otherwords, a "one inch square" would be displayed on a screen as a physical one inch square.


In the early days it was assumed that one would want to display drawings on a screen at full scale. Part of the problem with units in SVG and CSS in general is why they are there in the first place. Units are not as straight-forward as one should think they are. This page documents the philosophy for Units handling inside Inkscape.
