W3C

Mobile SVG Profiles: SVG Tiny and SVG Basic

W3C Candidate Recommendation 30 April 2002

This version:
http://www.w3.org/TR/2002/CR-SVGMobile-20020430/
Latest version:
http://www.w3.org/TR/SVGMobile/
Previous version:
http://www.w3.org/TR/2002/WD-SVGMobile-20020215/
Editor:
Tolga Capin (Nokia) <Tolga.Capin@nokia.com>
Authors:
See author list

Abstract

This document defines two mobile profiles of SVG 1.1. The first profile, SVG Tiny, is defined to be suitable for cellphones; the second profile, SVG Basic, is suitable for PDAs.

Status of this document

This specification from the W3C SVG Working Group is a Candidate Recommendation of the W3C. The Working Group believes this specification incorporates the resolution of all Last Call issues; furthermore it considers the specification to be stable and invites implementation feedback during this period.

The exit criteria for this phase is at least two implementations of every feature, one of which operates on the intended target platform for that profile. Additionally, should there be multiple implementations of all of the features on the intended target platform yet no single implementation that covers all of a profile of this specification in one viewer, then the Working Group must be satisfied that this is a reasonably achievable goal.

W3C SVG Working Group expects to meet implementations that meet all requirements of this document within the two month Candidate Recommendation period (closing at 1159Z on 23 June 2002). Specific areas where we would appreciate further experience are:

This document has been produced by the W3C SVG Working Group as part of the Graphics Activity within the W3C Document Formats Domain. The goals of the W3C SVG Working Group are discussed in the W3C SVG charter (W3C Members only). The W3C SVG Working Group has maintained a public Web page http://www.w3.org/Graphics/SVG/ which contains further background information. The authors of this document are the SVG Working Group participants.

We explicitly invite comments on this document. Please send them to svg-comments@w3.org. Public discussion of issues related to vector graphics on the Web and SVG in particular takes place on the public mailing list of the SVG Working Group (list archives). To subscribe send an email to www-svg-request@w3.org with the word subscribe in the subject line.

A list of current W3C Recommendations and other technical documents can be found at http://www.w3.org/TR/. W3C publications may be updated, replaced, or obsoleted by other documents at any time.

Table of contents


1. Introduction

It has been established by industry demand, overwhelming support in the SVG working group and requests from the SVG developer community that some form of SVG suited to displaying vector graphics on small devices is required. Moreover, the mission statement of SVG 1.0 specifically addresses small devices as a target area for vector graphics display. In order to meet these demands the SVG Working Group has committed to a concerted effort to create a profile specification that addresses mobile devices.

A single such profile is not sufficient to deal with the variety of mobile devices, because each mobile device has different characteristics in terms of CPU speed, memory size, and color support. To address the range of different device families, two profiles are defined. The first low-level profile, SVG Tiny (SVGT) is suitable for highly restricted mobile devices; while the second profile, SVG Basic (SVGB) is targeted for higher level mobile devices.

Because of the low memory, low CPU power and limited display of mobile devices, Mobile SVG profiles introduce constraints on content, attribute types, properties, and user agent behavior. This section describes these constraints and design rationale behind them.

  1. Two profiles are designed to allow SVG to render on mobile devices with limited memory, CPU power, and bandwidth.
  2. Mobile SVG profiles attempt to maximize compatibility with SVG 1.0 to display existing content.
  3. A true subset of the SVG 1.0 imaging model is maintained.
  4. Mobile SVG is designed to facilitate export from authoring tools.
  5. Mobile SVG is designed so that SVG 1.1 can be transcoded into SVGB and SVGT preserving as much scalability as possible.
  6. To ensure interoperability between content and software tools compliant with different profiles, SVGT is specified to be a proper subset of SVGB, and SVGB to be a proper subset of SVG 1.1.

2. Mobile SVG Document Types

SVGT and SVGB consist of the following SVG 1.1 modules. For each module, a given profile might contain the Full version, the subsetted Basic version, or no version of that module. For ease of use, the relevant elements in each module are given; in modules other than Full, not all attributes may be supported and there may be restrictions on attribute values. For details, see the module definitions in the SVG 1.1 specification.

SVG Tiny

Structure
Core Attribute Module
Basic Structure Module
defs, desc, g, metadata, svg, title, use
Style
Style Module
style
Painting
Paint Attribute Module
Basic Graphics Attribute Module
Hyperlinking
Hyperlinking
a
XLink Attribute Module
Conditional processing
Conditional Processing Module
switch
Shapes
Shape Module
circle, ellipse, line, path, polygon, polyline, rect
Images
Image Module
image
Text
Basic Text Module
altGlyph, altGlyphDef, glyphRef, text
Fonts
Basic Font Module
font, font-face, font-face-name, font-face-src, font-face-uri, glyph, hkern, missing-glyph, vkern
Interactivity
Document Events Attribute Module
Graphical Element Events Attribute Module
Animation Events Attribute Module
Scripting
Scripting Module
script
Views
View Module
view
Animation
Animation Module
animate, animateColor, animateMotion, animateTransform, mpath, set
Extensibility
Extensibility Module
foreignObject
Document Model
Basic Document Model Module

SVG Basic

Structure
Core Attribute Module
Structure Module
defs, desc, g, metadata, svg, symbol, title, use
Viewport Attribute Module
Style
Style Module
style
Painting
Paint Attribute Module
Paint Opacity Attribute Module
Graphics Attribute Module
Hyperlinking
Hyperlinking Module
a
XLink Attribute Module
External Resources Attribute Module
Conditional Processing
Conditional Processing Module
switch
Shapes
Shape Module
circle, ellipse, line, path, polygon, polyline, rect
Images
Image Module
image
Text
Text Module
altGlyph, altGlyphDef, altGlyphItem, glyphRef, text, textPath, tref, tspan
Color Profile
Color Profile Module
color-profile
Gradients
Gradient Module
linearGradient, radialGradient, stop
Patterns
Pattern Module
pattern
Clipping
Basic Clip Module
clipPath
Masking
Mask Module
mask
Fonts
Font Module
definition-src, font, font-face, font-face-format, font-face-name, font-face-src, font-face-uri, glyph, hkern, missing-glyph, vkern
Interactivity
Document Events Attribute Module
Graphical Element Events Attribute Module
Animation Events Attribute Module
Scripting
Scripting Module
script
Cursors
Cursor Module
cursor
Views
View Module
view
Filters
Basic Filter Module
feBlend, feColorMatrix, feComponentTransfer, feComposite, feFlood, feGaussianBlur, feImage, feMerge, feMergeNode, feOffset, feTile, feFuncR, feFuncG, feFuncB, feFuncA, filter
Animation
Animation Module
animate, animateColor, animateMotion, animateTransform, mpath, set
Extensibility
Extensibility Module
foreignObject
Document Model
Basic Document Model Module

3. Data Types

Data Type Description
Number SVGT and SVGB support fixed point numbers, thus all numbers must be limited in range between -32,767.9999 to +32,767.9999 or the scientific notation equivalent.
Length SVGT only supports user units (i.e., CSS units are not supported), with the one exception that the 'width' and 'height' attributes on the outermost 'svg' element can specify values in any of the following CSS units: in, cm, mm, pt, pc, and %. SVGB supports lengths in user coordinate space and in CSS units.
Coordinate SVGT and SVGB support the coordinate data type, represented with a <length> value.
List of XXX (where XXX represents a value of some type): SVGT and SVGB support the list specification.
Angle SVGT only supports angles if specified with no CSS unit identifiers (which means all angles are in degrees). SVGB supports angles with CSS unit identifiers.
Color SVGT and SVGB support <color> in the CSS2-compatible specification for a color in the sRGB color space, and system colors. Additionally, SVGB and SVGT support 16 original color keywords from XHTML. SVGB also allows optional support of ICC color profiles.
Paint SVGB supports paint specification for fill and stroke operations, as well as linear and radial gradients. SVGT does not support the more general notion of paint specification and thus only supports solid color fills and strokes.
Percentage SVGB supports percentages. SVGT does not support percentage values except for the 'width' and 'height' attributes on the outermost 'svg' element.
Transform List SVGB and SVGT support transform lists.
URI SVGB and SVGT support the URI datatype.
Frequency SVGB and SVGT do not support frequency values.
Time SVGB and SVGT support time values, with unit identifiers (ms, s).

4. Document Structure

Mobile SVG Document Fragment

SVGB and SVGT content can be in the form of stand-alone SVG Documents or document fragments embedded within a parent XML document. The following is an example of an SVG document fragment embedded within an XHTML 1.1 document:

  
      <?xml version="1.0" standalone="yes"?>
      <html xmlns="http://www.w3.org/1999/xhtml"
               xmlns:svg="http://www.w3.org/2000/svg">
      <head>
          <title xml:lang="en">Sample XHTML + SVG document</title>
      </head>
      <body>
         <svg:svg width="4cm" height="8cm" version="1.1" baseProfile="tiny" >
             <svg:ellipse cx="2" cy="4" rx="2" ry="1" />
         </svg:svg>
      </body>
      </html>

The 'title', 'desc', 'metadata' Elements

SVGB and SVGT support the 'title', 'desc' and 'metadata' elements as defined in SVG 1.1.

The 'svg' Element

Attributes of 'svg' elements that appear in the middle of SVGT content cannot be specified in CSS unit identifiers.

The 'baseProfile' attribute on the outermost 'svg' element must have the value "tiny" for SVG Tiny content, and "basic" for SVG Basic content. The 'baseProfile' attribute on nested child 'svg' elements is ignored. The SVG 1.1 specification states that the 'version' attribute of the outermost 'svg' element in SVG 1.1 content must have the value "1.1".

References and the 'defs' Element

For SVGT, all referenced objects, except on the 'image', 'font-face-uri', and 'a' elements, must be internal (using the 'data:' URL scheme, and base64 encoding). SVGB does not put extra limitations on external references as defined by SVG 1.1.

The Working Group invites implementation feedback on whether external references and base64 encoding are desirable or implementable on SVGT devices.

The 'symbol' Element

SVGT does not support symbols.

The 'use' Element

Note that, in SVG 1.1, animations on a referenced element will cause the instances to be animated. SVGB and SVGT also support this feature.

The 'image' Element

SVGB and SVGT require support of the JPEG, PNG, and SVG formats on the image element.

The 'switch' Element

SVGT and SVGB support the switch element, to determine which SVG 1.1 features are supported by the user agent.

The following feature strings are allowed for SVGT:

The following feature strings are allowed for SVGB:

5. Styling

SVGB and SVGT support subsets of SVG 1.1's presentation attributes. SVGB and SVGT allow optional support of CSS Mobile Profile 1.0.

SVGB and SVGT can introduce constraints on style properties. Allowed values for style properties are listed in Appendix C.

6. Coordinate Systems, Transformations and Units

SVGB and SVGT support SVG 1.1's notion of viewports.

SVGB and SVGT support nesting of transformations. The types of transformations that are allowed are generic transformation matrices, or simple operations such as rotation, scaling, skewing, and translation.

The 'transform' Attribute

SVGB and SVGT support the transform attribute. The following transform definition types are supported:

The 'viewBox' Attribute

SVGB and SVGT fully support the 'viewBox' attribute, however with restrictions on preserveAspectRatio attribute values.

The 'preserveAspectRatio' Attribute

SVGB and SVGT support the 'preserveAspectRatio' attribute for adapting the content to devices with different display aspect ratios.

In SVGT,  the <align> parameter can only be either 'none' or 'XMidYMid', the <meetOrSlice> parameter can only be 'meet'.

In SVGB, the values of this parameter can be the same as in SVG 1.1.

Establishing a New Viewport

SVGB and SVGT support establishing a new viewport via additional embedded 'svg' elements.

Units

SVGT supports user units only, except for the 'width' and 'height' attributes on the outermost 'svg' element where CSS units are also supported. SVGB supports both user units and CSS user identifiers.

Object Bounding Box Units

SVGT does not support bounding box unit specification.

7. Shapes

Paths

SVGB and SVGT support all SVG 1.1 path commands, except the elliptical arc curve command ("A"(absolute) and "a"(relative)).

The path element data is animatable, as defined in the SVG 1.1 specification.

Basic Shapes

SVGT and SVGB support the basic shapes (rectangles, circles, ellipses, lines, polylines, and polygons) as defined in SVG 1.1.

8. Text

SVGB and SVGT represent text with Unicode characters. Mobile SVG user agents are not required to allow text selection and clipboard operations.

SVGT does not support text on a path, 'tspan' and 'tref' elements. SVGT supports the 'rotate' attribute on the 'text' element, but it should be noted that this may cause a slow down of the user agent's rendering speed, and rotation may not be supported with system fonts.

9. Painting: Filling, Stroking and Marker Symbols

SVGB and SVGT support filling and stroking 'path' elements and basic shapes with solid colors.

SVGB supports stroking on text when using outline fonts, but SVGT does not.

10. Color

SVGB and SVGT support colors defined by 'color' property in sRGB color space, and color keywords.

Specifying colors using an ICC profile is not supported in SVGT, and as with SVG 1.1, it is optional in SVGB.

11. Gradients and Patterns

SVGB supports solid colors, gradient paints, patterns, and custom paints. SVGT only supports solid color painting.

12. Clipping, Masking and Compositing

SVGB supports clipping, masking and compositing. SVGB does not support additive clipping paths. Also, in SVGB, clipping paths are restricted to rectangles ('rect' elements or references to 'rect' elements through 'use').

SVGT does not support element opacity, fill-opacity, stroke-opacity properties.

13. Filter Effects

SVGB supports a subset of filter effects. SVGT does not support filter effects.

14. Interactivity

SVGB and SVGT support the SVG 1.1 events.

15. Linking

SVGB and SVGT support hyperlink activation from SVG content to other Web resources through the 'a' element.

SVGB supports hyperlink into particular views of SVG content. SVGT does not support this feature.

16. Scripting

SVGB and SVGT include all of the language features from SVG 1.1 to support scripting. Scripting is optional in SVGB and SVGT. SVG Tiny does not require a default language that has to be supported by all user agents.

17. Animation

Both SVGB and SVGT support the full set of SVG 1.1's declarative animation features:

The language features to support animation through scripting and DOM are available in SVGB and SVGT.

SVGB and SVGT allow implicit targeting of parent elements, and targeting elements using the 'xlink:href' attribute.

SVGB and SVGT support linear, spline, paced and discrete animations.

18. Fonts

SVGB and SVGT support a subset of SVG fonts where only the 'd' attribute on the 'glyph' and 'missing-glyph' elements is available. Arbitrary SVG within a 'glyph' is not supported.

As with Full SVG 1.1, SVGT and SVGB support downloadable fonts using WebFonts facility defined in the "Cascading Style Sheets (CSS) level 2" specification.

The SVG Working Group invites implementation feedback on whether the downloadable fonts are desirable or implementable on SVGT devices.

19. Metadata

Both SVGB and SVGT support embedded metadata, as well as elements and attributes from foreign namespaces included within the SVG content.

20. Extensibility

The SVG renderer is not expected to be able to render content in foreign namespaces, but the foreignObject element allows a subtree in a foreign namespace to be assigned a width and height and passed off to another renderer.


Author List

The authors of this specification are the participants of the W3C SVG Working Group.

Authors:

Acknowledgments

The SVG Working Group would like to acknowledge the great many people outside of the SVG Working Group who help with the process of developing the SVG 1.1 and Mobile SVG specification. These people are too numerous to list individually. They include but are not limited to the early implementers of the SVG 1.0 and 1.1 languages and Mobile SVG profiles (including viewers, authoring tools, and server-side transcoders), developers of SVG content, people who have contributed on the www-svg@w3.org and svg-developers@yahoogroups.com email lists, other Working Groups at the W3C, and the W3C team. Mobile SVG is truly a cooperative effort between the SVG Working Group, the rest of the W3C, and the public and benefits greatly from the pioneering work of early implementers and content developers, feedback from the public, and help from the W3C team.


References

[CSS Mobile Profile]
CSS Mobile Profile 1.0, Ted Wugofski, Doug Dominiak, Peter Stark, editors, W3C, 24 October 2001 (W3C Candidate Recommendation) Available at http://www.w3.org/TR/css-mobile.
[MOBILE SVG Requirements]
SVG Mobile Requirements, Rick Graham, Tolga K. Capin, editors, W3C, 3 August 2001 (Working Draft). Available at http://www.w3.org/TR/SVGMobileReqs.
[RFC2119]
RFC 2119: Key words for use in RFCs to Indicate Requirement Levels Internet Engineering Task Force, 1997. Available at http://www.ietf.org/rfc/rfc2119.txt.
[SRGB]
Multimedia systems and equipment - Colour measurement and management - Part 2-1: Colour management - Default RGB colour space - sRGB, IEC. Available at http://www.iec.ch/nr1899.htm.
[SVG 1.0]
Scalable Vector Graphics (SVG) 1.0 Specification, Jon Ferraiolo, editor, W3C, 4 September 2001 (Recommendation). Available at http://www.w3.org/TR/SVG.
[SVG 1.1/2.0 Requirements]
SVG 1.1/2.0 Requirements, Dean Jackson, editor, W3C, 3 August 2001. Available at http://www.w3.org/TR/SVG2Reqs.
[SVG 1.1]
Scalable Vector Graphics (SVG) Version 1.1 Specification, Dean Jackson, editor, W3C, 15 February 2002. Available at http://www.w3.org/TR/SVG11.

Appendix A. Element Index

Color code
Supported fully in a Full Module Yes
Supported with subsetted functionality in a Basic Module Yes
Disallowed in profile n/a

Element SVG Tiny SVG Basic
a Hyperlinking Hyperlinking
altGlyph Basic Text Text
altGlyphDef Basic Text Text
altGlyphItem n/a Text
animate Animation Animation
animateColor Animation Animation
animateMotion Animation Animation
animateTransform Animation Animation
circle Shape Shape
clipPath n/a Basic Clip
color-profile n/a Color Profile
cursor n/a Cursor
definition-src n/a Font
defs Basic Structure Structure
desc Basic Structure Structure
ellipse Shape Shape
feBlend n/a Basic Filter
feColorMatrix n/a Basic Filter
feComponentTransfer n/a Basic Filter
feComposite n/a Basic Filter
feConvolveMatrix n/a n/a
feDiffuseLighting n/a n/a
feDisplacementMap n/a n/a
feDistantLight n/a n/a
feFlood n/a Basic Filter
feFuncA n/a Basic Filter
feFuncB n/a Basic Filter
feFuncG n/a Basic Filter
feFuncR n/a Basic Filter
feGaussianBlur n/a Basic Filter
feImage n/a Basic Filter
feMerge n/a Basic Filter
feMergeNode n/a Basic Filter
feMorphology n/a n/a
feOffset n/a Basic Filter
fePointLight n/a n/a
feSpecularLighting n/a n/a
feSpotLight n/a n/a
feTile n/a Basic Filter
feTurbulence n/a n/a
filter n/a Basic Filter
font Basic Font Font
font-face Basic Font Font
font-face-format n/a Font
font-face-name Basic Font Font
font-face-src Basic Font Font
font-face-uri Basic Font Font
foreignObject Extensibility Extensibility
g Basic Structure Structure
glyph Basic Font Font
glyphRef Basic Text Text
hkern Basic Font Font
image Image Image
line Shape Shape
linearGradient n/a Gradient
marker n/a n/a
mask n/a Mask
metadata Basic Structure Structure
missing-glyph Basic Font Font
mpath Animation Animation
path Shape Shape
pattern n/a Pattern
polygon Shape Shape
polyline Shape Shape
radialGradient n/a Gradient
rect Shape Shape
script Scripting Scripting
set Animation Animation
stop n/a Gradient
style Style Style
svg Basic Structure Structure
switch Conditional Processing Conditional Processing
symbol n/a Structure
text Basic Text Text
textPath n/a Text
title Basic Structure Structure
tref n/a Text
tspan n/a Text
use Basic Structure Structure
view View View
vkern Basic Font Font


Appendix B. Attribute Index

Attribute SVGTiny SVG 1.1 Module SVGBasic SVG 1.1 Module
accent-height %Number Basic Font %Number; Font
accumulate (none | sum) Animation (none | sum) Animation
additive (replace | sum) Animation (replace | sum) Animation
alignment-baseline n/a n/a ( baseline | top | before-edge | text-top | text-before-edge | middle | bottom | after-edge | text-bottom | text-after-edge | ideographic | lower | hanging | mathematical | inherit) Text
alphabetic %Number; Basic Font %Number; Font
amplitude n/a n/a %Number; Basic Filter
arabic-form CDATA Basic Font CDATA Font
ascent %Number; Basic Font %Number; Font
attributeName CDATA Animation CDATA Animation
attributeType CDATA Animation CDATA Animation
azimuth n/a n/a n/a n/a
baseFrequency n/a n/a n/a n/a
baseProfile CDATA Basic Structure CDATA Structure
baseline-shift n/a n/a (baseline | sub | super | <percentage> | <length> | inherit) Text
bbox CDATA Basic Font CDATA Font
begin CDATA Animation CDATA Animation
bias n/a n/a n/a n/a
by CDATA Animation CDATA Animation
calcMode (discrete | linear | paced | spline) Animation (discrete | linear | paced | spline) Animation
cap-height %Number; Basic Font %Number; Font
class %ClassList; Style %ClassList; Style
clip n/a n/a (<shape> | auto | inherit) Viewport Attribute
clip-path n/a n/a (<uri> | none | inherit) Basic Clip
clip-rule n/a n/a (nonzero | evenodd | inherit ) Basic Clip
clipPathUnits n/a n/a (userSpaceOnUse | objectBoundingBox) Basic Clip
color %Color; Paint Attribute %Color; Paint Attribute
color-interpolation (auto | sRGB | linearRGB | inherit) Paint Attribute (auto | sRGB | linearRGB | inherit) Paint Attribute
color-interpolation-filters n/a n/a (auto | sRGB | linearRGB | inherit) Basic Filter
color-profile n/a n/a CDATA Color Profile
color-rendering (auto | optimizeSpeed | optimizeQuality | inherit) Paint Attribute (auto | optimizeSpeed | optimizeQuality | inherit) Paint Attribute
content CDATA Extensibility CDATA Extensibility
contentScriptType %ContentType; Basic Structure %ContentType; Structure
contentStyleType %ContentType; Basic Structure %ContentType; Structure
cursor n/a n/a ([ [<uri> ,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize| text | wait | help ] ] | inherit ) Cursor
cx n/a n/a %Coordinate; Gradient
cx %Coordinate; Shape %Coordinate; Shape
cy n/a n/a %Coordinate; Gradient
cy %Coordinate; Shape %Coordinate; Shape
d %PathData; Basic Font %PathData; Font
d %PathData; Shape %PathData; Shape
descent %Number; Basic Font %Number; Font
diffuseConstant n/a n/a n/a n/a
direction n/a n/a (ltr | rtl | inherit) Text
display ( inline | block | list-item | run-in | compact | marker | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | none | inherit ) Basic Graphics Attribute ( inline | block | list-item | run-in | compact | marker | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | none | inherit ) Graphics Attribute
divisor n/a n/a n/a n/a
dominant-baseline n/a n/a (auto | autosense-script | no-change | reset | ideographic | lower | hanging | mathematical | inherit) Text
dur CDATA Animation CDATA Animation
dx n/a n/a %Lengths; Text
dx n/a n/a n/a Basic Filter
dy n/a n/a %Lengths; Text
dy n/a n/a n/a Basic Filter
edgeMode n/a n/a n/a n/a
elevation n/a n/a n/a n/a
enable-background n/a n/a n/a n/a
end CDATA Animation CDATA Animation
exponent n/a n/a %Number; Basic Filter
externalResourcesRequired n/a n/a %Boolean; External Resources Attribute
fill (remove | freeze) Animation (remove | freeze) Animation
fill %Paint; Paint Attribute %Paint; Paint Attribute
fill-opacity n/a n/a %OpacityValue; Paint Opacity Attribute
fill-rule %ClipFillRule; Paint Attribute %ClipFillRule; Paint Attribute
filter n/a n/a %FilterValue; Basic Filter
filterRes n/a n/a %NumberOptionalNumber; Basic Filter
filterUnits n/a n/a (userSpaceOnUse | objectBoundingBox) Basic Filter
flood-color n/a n/a %SVGColor; Basic Filter
flood-opacity n/a n/a %OpacityValue; Basic Filter
font [ [ <'font-style'> || <'font-variant'> || <'font-weight'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box| small-caption | status-bar | inherit Basic Text [ [ <'font-style'> || <'font-variant'> || <'font-weight'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box| small-caption | status-bar | inherit Text
font-family %FontFamilyValue; Basic Text %FontFamilyValue; Text
font-family CDATA Basic Font CDATA Font
font-size %FontSizeValue; Basic Text %FontSizeValue; Text
font-size CDATA Basic Font CDATA Font
font-size-adjust n/a n/a %FontSizeAdjustValue; Text
font-stretch n/a n/a (normal | wider | narrower | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | inherit) Text
font-stretch (normal | wider | narrower | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | inherit) Basic Font (normal | wider | narrower | ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | expanded | extra-expanded | ultra-expanded | inherit) Font
font-style (normal | italic | oblique | inherit) Basic Text (normal | italic | oblique | inherit) Text
font-style CDATA Basic Font CDATA Font
font-variant n/a n/a (normal | small-caps | inherit) Text
font-variant CDATA Basic Font CDATA Font
font-weight (normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit) Basic Text (normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit) Text
font-weight (normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit) Basic Font (normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit) Font
format CDATA Basic Text CDATA Text
from CDATA Animation CDATA Animation
fx n/a n/a %Coordinate; Gradient
fy n/a n/a %Coordinate; Gradient
g1 CDATA Basic Font CDATA Font
g2 CDATA Basic Font CDATA Font
glyph-name CDATA Basic Font CDATA Font
glyph-orientation-horizontal n/a n/a %GlyphOrientationHorizontalValue; Text
glyph-orientation-vertical n/a n/a %GlyphOrientationVerticalValue; Text
glyphRef CDATA Basic Text CDATA Text
gradientTransform n/a n/a %TransformList; Gradient
gradientUnits n/a n/a (userSpaceOnUse | objectBoundingBox) Gradient
hanging %Number; Basic Font %Number; Font
height %Length; Basic Structure %Length; Structure
height %Length; Shape %Length; Shape
height %Length; Image %Length; Image
height n/a n/a %Length; Pattern
height %Length; Extensibility %Length; Extensibility
height n/a n/a %Length; Mask
height n/a n/a %URI; Basic Filter
horiz-adv-x %Number; Basic Font %Number; Font
horiz-origin-x %Number; Basic Font %Number; Font
horiz-origin-y %Number; Basic Font %Number; Font
id %Number; Core Attribute %Number; Core Attribute
ideographic %Number; Basic Font %Number; Font
image-rendering n/a n/a (auto | optimizeSpeed | optimizeQuality | inherit) Graphics Attribute
in n/a n/a CDATA Basic Filter
in2 n/a n/a CDATA Basic Filter
intercept n/a n/a %Number; Basic Filter
k %Number; Basic Font %Number; Font
k1 n/a n/a %Number; Basic Filter
k2 n/a n/a %Number; Basic Filter
k3 n/a n/a %Number; Basic Filter
k4 n/a n/a %Number; Basic Filter
kernelMatrix n/a n/a n/a n/a
kernelUnitLength n/a n/a n/a n/a
kerning n/a n/a %KerningValue; Text
keyPoints CDATA Animation CDATA Animation
keySplines CDATA Animation CDATA Animation
keyTimes CDATA Animation CDATA Animation
lang %LanguageCodes; Basic Font %LanguageCodes; Font
lengthAdjust n/a n/a (spacing|spacingAndGlyphs) Text
letter-spacing n/a n/a %SpacingValue; Text
lighting-color n/a n/a n/a n/a
limitingConeAngle n/a n/a n/a n/a
local n/a n/a CDATA Color Profile
marker-end n/a n/a n/a n/a
marker-mid n/a n/a n/a n/a
marker-start n/a n/a n/a n/a
markerHeight n/a n/a n/a n/a
markerUnits n/a n/a n/a n/a
markerWidth n/a n/a n/a n/a
mask n/a n/a %MaskValue; Mask
maskContentUnits n/a n/a (userSpaceOnUse | objectBoundingBox) Mask
maskUnits n/a n/a (userSpaceOnUse | objectBoundingBox) Mask
mathematical %Number; Basic Font %Number; Font
max CDATA Animation CDATA Animation
media %MediaDesc; Style %MediaDesc; Style
method n/a n/a n/a n/a
min CDATA Animation CDATA Animation
mode n/a n/a (normal | multiply | screen | darken | lighten) Basic Filter
name n/a n/a CDATA Color Profile
name CDATA Basic Font CDATA Font
numOctaves n/a n/a n/a n/a
offset n/a n/a %NumberOrPercentage; Gradient
offset n/a n/a %Number; Basic Filter
onabort %Script; Document Events Attribute %Script; Document Events Attribute
onactivate %Script; Graphical Element Events Attribute %Script; Graphical Element Events Attribute
onbegin %Script; Animation Events Attribute %Script; Animation Events Attribute
onclick %Script; Graphical Element Events Attribute %Script; Graphical Element Events Attribute
onend %Script; Animation Events Attribute %Script; Animation Events Attribute
onerror %Script; Document Events Attribute %Script; Document Events Attribute
onfocusin %Script; Graphical Element Events Attribute %Script; Graphical Element Events Attribute
onfocusout %Script; Graphical Element Events Attribute %Script; Graphical Element Events Attribute
onload %Script; Graphical Element Events Attribute %Script; Graphical Element Events Attribute
onmousedown %Script; Graphical Element Events Attribute %Script; Graphical Element Events Attribute
onmousemove %Script; Graphical Element Events Attribute %Script; Graphical Element Events Attribute
onmouseout %Script; Graphical Element Events Attribute %Script; Graphical Element Events Attribute
onmouseover %Script; Graphical Element Events Attribute %Script; Graphical Element Events Attribute
onmouseup %Script; Graphical Element Events Attribute %Script; Graphical Element Events Attribute
onrepeat %Script; Animation Events Attribute %Script; Animation Events Attribute
onresize %Script; Document Events Attribute %Script; Document Events Attribute
onscroll %Script; Document Events Attribute %Script; Document Events Attribute
onunload %Script; Document Events Attribute %Script; Document Events Attribute
onzoom %Script; Document Events Attribute %Script; Document Events Attribute
opacity n/a n/a %OpacityValue; Paint Opacity Attribute
operator n/a n/a (over | in | out | atop | xor | arithmetic) Basic Filter
order n/a n/a n/a n/a
orient n/a n/a n/a n/a
orientation CDATA Basic Font CDATA Font
origin CDATA Animation CDATA Animation
overflow n/a n/a (visible | hidden | scroll | auto | inherit) Viewport Attribute
overline-position %Number; Basic Font %Number; Font
overline-thickness %Number; Basic Font %Number; Font
panose-1 CDATA Basic Font CDATA Font
path CDATA Animation CDATA Animation
pathLength %Number; Shape %Number; Shape
patternContentUnits n/a n/a (userSpaceOnUse | objectBoundingBox) Pattern
patternTransform n/a n/a %TransformList; Pattern
patternUnits n/a n/a (userSpaceOnUse | objectBoundingBox) Pattern
pointer-events n/a n/a ( visiblePainted | visibleFill | visibleStroke | visible | painted | fill | stroke | all | none | inherit) Graphics Attribute
points %Points; Shape %Points; Shape
pointsAtX n/a n/a n/a n/a
pointsAtY n/a n/a n/a n/a
pointsAtZ n/a n/a n/a n/a
preserveAlpha n/a n/a n/a n/a
preserveAspectRatio %PreserveAspectRatioSpec; Basic Structure %PreserveAspectRatioSpec; Structure
preserveAspectRatio %PreserveAspectRatioSpec; Image %PreserveAspectRatioSpec; Image
preserveAspectRatio %PreserveAspectRatioSpec; View %PreserveAspectRatioSpec; View
preserveAspectRatio %PreserveAspectRatioSpec; Pattern
primitiveUnits n/a n/a (userSpaceOnUse | objectBoundingBox) Basic Filter
r n/a n/a %Length; Gradient
r %Length; Shape %Length; Shape
radius n/a n/a n/a n/a
refX n/a n/a n/a n/a
refY n/a n/a n/a n/a
rendering-intent n/a n/a CDATA Color Profile
repeatCount CDATA Animation CDATA Animation
repeatDur CDATA Animation CDATA Animation
requiredExtensions %ExtensionList; Conditional Processing %ExtensionList; Conditional Processing
requiredFeatureList %ExtensionList; Conditional Processing %ExtensionList; Conditional Processing
requiredFeatures %ExtensionList; Conditional Processing %ExtensionList; Conditional Processing
restart (always | never | whenNotActive) Animation (always | never | whenNotActive) Animation
result n/a n/a CDATA Basic Filter
rotate CDATA Animation CDATA Animation
rotate %Numbers; Basic Text %Numbers; Text
rx %Length; Shape %Length; Shape
ry %Length; Shape %Length; Shape
scale n/a n/a n/a n/a
seed n/a n/a n/a n/a
shape-rendering n/a n/a (auto | optimizeSpeed | crispEdges | geometricPrecision | inherit) Graphics Attribute
slope %Number; Basic Font %Number; Font
slope n/a n/a %Number; Basic Filter
spacing n/a n/a (auto|exact) Text
specularConstant n/a n/a n/a n/a
specularExponent n/a n/a n/a n/a
spreadMethod n/a n/a (pad | reflect | repeat) Gradient
startOffset n/a n/a %Length; Text
stdDeviation n/a n/a %NumberOptionalNumber; Basic Filter
stemh %Number; Basic Font %Number; Font
stemv %Number; Basic Font %Number; Font
stitchTiles n/a n/a n/a n/a
stop-color n/a n/a %SVGColor; Gradient
stop-opacity n/a n/a %OpacityValue; Gradient
strikethrough-position %Number; Basic Font %Number; Font
strikethrough-thickness %Number; Basic Font %Number; Font
stroke %Paint; Paint Attribute %Paint; Paint Attribute
stroke-dasharray %StrokeDashArrayValue; Paint Attribute %StrokeDashArrayValue; Paint Attribute
stroke-dashoffset %StrokeDashOffsetValue; Paint Attribute %StrokeDashOffsetValue; Paint Attribute
stroke-linecap (butt | round | square | inherit) Paint Attribute (butt | round | square | inherit) Paint Attribute
stroke-linejoin (miter | round | bevel | inherit) Paint Attribute (miter | round | bevel | inherit) Paint Attribute
stroke-miterlimit %StrokeMiterLimitValue; Paint Attribute %StrokeMiterLimitValue; Paint Attribute
stroke-opacity n/a n/a %OpacityValue; Paint Opacity Attribute
stroke-width %StrokeWidthValue; Paint Attribute %StrokeWidthValue; Paint Attribute
style %StyleSheet; Style %StyleSheet; Style
surfaceScale n/a n/a n/a n/a
systemLanguage %LanguageCodes; Conditional Processing %LanguageCodes; Conditional Processing
tableValues n/a n/a CDATA Basic Filter
target %LinkTarget; Hyperlinking %LinkTarget; Hyperlinking
targetX n/a n/a n/a n/a
targetY n/a n/a n/a n/a
text-anchor n/a n/a (start | middle | end | inherit) Text
text-decoration n/a n/a %TextDecorationValue; Text
text-rendering n/a n/a (auto | optimizeSpeed | optimizeLegibility | geometricPrecision | inherit) Graphics Attribute
textLength n/a n/a %Length; Text
title %Text; Style %Text; Style
to CDATA