Old files and some editors still write these elements. The explorer recognises every one, marks it in the tree with the version that has it, and lists the use of each group under Features on the Features tab.
SVG 1.1 elements that SVG 2 removed
| Element | Purpose | Today |
|---|---|---|
font, glyph, missing-glyph, hkern, vkern | An SVG font: each glyph has unicode, glyph-name, horiz-adv-x and a d outline; hkern and vkern adjust pairs (u1, u2, g1, g2, k). | Dropped from SVG 2. Web fonts replaced them. No current browser draws them. |
font-face, font-face-src, font-face-uri, font-face-format, font-face-name | The font description (font-family, units-per-em, ascent, descent and others) and where to get the font. | Replaced by CSS @font-face. |
tref, altGlyph, altGlyphDef, altGlyphItem, glyphRef | Text copying and glyph choice. | Removed. See the text elements. |
cursor | A custom mouse pointer image, named by the cursor property. | Use CSS cursor: url(…). |
color-profile | An ICC profile for icc-color() values and color-profile. | Removed; CSS Color has color() instead. |
animateColor | Colour animation. | Use animate. |
SVG Tiny 1.2
The mobile profile (2008) is a subset of SVG 1.1 plus a few elements of its own. A full SVG renderer ignores them.
| Element | Purpose |
|---|---|
textArea, tbreak | Text wrapped in a box, and a line break in it. |
solidColor | A paint server that paints one colour (solid-color, solid-opacity). |
audio, video, animation | Embedded media and an SVG played as an animation. |
handler, listener | Script event handlers wired to events. |
prefetch | A hint to load a resource early. |
discard | Removes an element at a time. In SVG Tiny 1.2; it is not in the SVG 2 element index. |
Draft SVG 2 elements
Earlier drafts of SVG 2 had mesh gradients (meshgradient,
meshrow, meshpatch), hatches (hatch,
hatchpath) and the elements canvas, iframe and
unknown. They are not in SVG 2 as published as a Candidate Recommendation,
and no browser supports them. Inkscape can write mesh gradients and hatches. The
explorer lists them as draft elements and warns that other readers will not draw
them.
SVG 1.1 font and legacy element attributes
From the attribute index of SVG 1.1 (Second Edition), besides the core ones
(id, class, style, xml:base,
xml:lang, xml:space) that most of them accept:
| Element | Attributes |
|---|---|
font | horiz-adv-x, horiz-origin-x, horiz-origin-y, vert-adv-y, vert-origin-x, vert-origin-y, externalResourcesRequired |
font-face | font-family, font-style, font-variant, font-weight, font-stretch, font-size, unicode-range, units-per-em, panose-1, stemv, stemh, slope, cap-height, x-height, accent-height, ascent, descent, widths, bbox, ideographic, alphabetic, mathematical, hanging, v-ideographic, v-alphabetic, v-mathematical, v-hanging, underline-position, underline-thickness, strikethrough-position, strikethrough-thickness, overline-position, overline-thickness |
glyph | d, horiz-adv-x, vert-origin-x, vert-origin-y, vert-adv-y, unicode, glyph-name, orientation, arabic-form, lang |
missing-glyph | d, horiz-adv-x, vert-origin-x, vert-origin-y, vert-adv-y |
hkern, vkern | u1, g1, u2, g2, k |
font-face-uri | xlink:href and the other XLink attributes |
font-face-format | string |
font-face-name | name |
font-face-src, altGlyphDef, altGlyphItem | core attributes only |
color-profile | local, name, rendering-intent, the XLink attributes (xlink:href, xlink:type, xlink:role, xlink:arcrole, xlink:title, xlink:show, xlink:actuate) |
cursor | x, y, xlink:href and the other XLink attributes, the conditional processing attributes and externalResourcesRequired |
glyphRef | glyphRef, format, x, y, dx, dy, XLink attributes |
altGlyph, tref | x, y, dx, dy, rotate, xlink:href and the other XLink attributes, the conditional and event attributes; altGlyph adds glyphRef and format, tref adds textLength and lengthAdjust |
Not described
This page is partial.
Known, not yet covered
- Reference: the attributes of the SVG Tiny 1.2 elements (SVG Tiny 1.2 specification) are mostly not described; only some are named. The SVG 1.1 font attribute lists below come from the SVG 1.1 attribute index; what each value means (SVG 1.1 chapter 20) is not written up.
- Reference: the draft SVG 2 mesh gradient and hatch syntax, written up in the SVG 2 working drafts and implemented in Inkscape, is not described.
- Viewer: recognises these elements and marks them in the tree and on the Features tab, but does not check their attributes, turn SVG fonts into glyphs or draw them.