- From: SVG Working Group repository <cam+svgwgrepo@mcc.id.au>
- Date: Thu, 26 Jun 2014 08:41:23 -0700
- To: public-svg-wg@w3.org
details: https://svgwg.org/hg/svg2/rev/f1a677e91280 branches: changeset: 686:f1a677e91280 user: Erik Dahlstrom <ed@opera.com> date: Thu Jun 26 17:38:18 2014 +0200 description: ACTION-3632: Remove altGlyph, altGlyphDef, altGlyphItem and glyphRef. diffstat: master/changes.html | 4 + master/definitions.xml | 86 +----- master/feature.html | 2 +- master/idlindex.html | 4 - master/linking.html | 1 - master/propidx.html | 8 +- master/struct.html | 19 +- master/styling.html | 3 +- master/text.html | 623 +----------------------------------------------- 9 files changed, 48 insertions(+), 702 deletions(-) diffs (1447 lines): diff --git a/master/changes.html b/master/changes.html --- a/master/changes.html +++ b/master/changes.html @@ -180,16 +180,20 @@ have been made.</p> <li>Added <a>'white-space'</a> property and deprecated <a>'xml:space'</a> attribute.</li> <li>Removed the <span class='property'>'kerning'</span> property.</li> <li>Added <a>'textPath/d'</a> attribute to <a>'textPath'</a>.</li> <li class='added-since-last-wd'>Removed the <span class='element'>'tref'</span> element.</li> + + <li class='added-since-last-wd'>Removed the <span class='element'>'altGlyph'</span>, <span class='element'>'altGlyphDef'</span>, + <span class='element'>'altGlyphItem'</span> and <span class='element'>'glyphRef'</span> elements. + </li> </ul> <h3 id="embedded">Embedded Content chapter</h3> <ul> <li>Added this chapter, which includes new <a>'video'</a>, <a>'audio'</a>, <a>'iframe'</a>, <a>'canvas'</a>, <a>'source'</a> and <a>'track'</a> elements that behave almost identically diff --git a/master/definitions.xml b/master/definitions.xml --- a/master/definitions.xml +++ b/master/definitions.xml @@ -9,66 +9,26 @@ then a stand-alone <attribute> entry must be added in the next section. --> <element name='a' href='linking.html#AElement' contentmodel='textoranyof' elementcategories='animation, descriptive, shape, structural, paint server' - elements='a, clipPath, cursor, filter, foreignObject, image, marker, mask, script, style, switch, view, text, altGlyphDef' + elements='a, clipPath, cursor, filter, foreignObject, image, marker, mask, script, style, switch, view, text' attributecategories='aria, navigation, conditional processing, core, graphical event, presentation, style, xlink' interfaces='SVGAElement'> <attribute name='xlink:href' href='linking.html#AElementXLinkHrefAttribute' animatable='yes'/> <attribute name='xlink:show' href='linking.html#XLinkShowAttribute'/> <attribute name='xlink:actuate' href='linking.html#AElementXLinkActuateAttribute'/> <attribute name='target' href='linking.html#AElementTargetAttribute' animatable='yes'/> </element> <element - name='altGlyph' - href='text.html#AltGlyphElement' - contentmodel='any' - attributecategories='aria, navigation, conditional processing, core, graphical event, presentation, style, xlink' - interfaces='SVGAltGlyphElement'> - <attribute name='x' href='text.html#AltGlyphElementXAttribute' animatable='yes'/> - <attribute name='y' href='text.html#AltGlyphElementYAttribute' animatable='yes'/> - <attribute name='dx' href='text.html#AltGlyphElementDXAttribute' animatable='yes'/> - <attribute name='dy' href='text.html#AltGlyphElementDYAttribute' animatable='yes'/> - <attribute name='glyphRef' href='text.html#AltGlyphElementGlyphRefAttribute'/> - <attribute name='format' href='text.html#AltGlyphElementFormatAttribute'/> - <attribute name='rotate' href='text.html#AltGlyphElementRotateAttribute' animatable='yes'/> - <attribute name='xlink:href' href='text.html#AltGlyphElementHrefAttribute'/> - </element> - - <element - name='altGlyphDef' - href='text.html#AltGlyphDefElement' - attributecategories='core' - interfaces='SVGAltGlyphDefElement'> - <x:contentmodel xmlns='http://www.w3.org/1999/xhtml'> - Any number of <a>'script'</a> elements, and either: - <ul> - <li>one or more <a>'glyphRef'</a> elements, or</li> - <li>one or more <a>'altGlyphItem'</a> elements.</li> - </ul> - </x:contentmodel> - </element> - - <element - name='altGlyphItem' - href='text.html#AltGlyphItemElement' - attributecategories='aria, navigation, core' - interfaces='SVGAltGlyphItemElement'> - <x:contentmodel xmlns='http://www.w3.org/1999/xhtml'> - Any number of <a>'script'</a> elements, and one or more <a>'glyphRef'</a> elements. - </x:contentmodel> - </element> - - <element name='animate' href='animate.html#AnimateElement' contentmodel='anyof' elementcategories='descriptive' elements='script' attributecategories='conditional processing, core, animation event, xlink, animation attribute target, animation timing, animation value, animation addition, presentation' interfaces='SVGAnimateElement'/> <element @@ -157,17 +117,17 @@ <attribute name='xlink:href' href='interact.html#CursorElementHrefAttribute' animatable='yes'/> </element> <element name='defs' href='struct.html#DefsElement' contentmodel='anyof' elementcategories='animation, descriptive, shape, structural, paint server' - elements='a, clipPath, cursor, filter, foreignObject, image, marker, mask, script, style, switch, view, text, altGlyphDef' + elements='a, clipPath, cursor, filter, foreignObject, image, marker, mask, script, style, switch, view, text' attributecategories='core, graphical event, presentation, style' interfaces='SVGDefsElement'/> <element name='desc' href='struct.html#DescElement' contentmodel='any' attributecategories='core, style' attributes='lang' @@ -209,37 +169,21 @@ <attribute name='height' href='extend.html#ForeignObjectElementHeightAttribute' animatable='yes' presentation='yes'/> </element> <element name='g' href='struct.html#GElement' contentmodel='anyof' elementcategories='animation, descriptive, shape, structural, paint server' - elements='a, altGlyphDef, clipPath, cursor, filter, foreignObject, image, marker, mask, script, style, switch, text, view' + elements='a, clipPath, cursor, filter, foreignObject, image, marker, mask, script, style, switch, text, view' attributecategories='aria, navigation, conditional processing, core, graphical event, presentation, style' interfaces='SVGGElement'/> <element - name='glyphRef' - href='text.html#GlyphRefElement' - elementcategories='paint server' - contentmodel='anyof' - elements='clipPath, marker, mask, script' - attributecategories='core, style, presentation' - interfaces='SVGGlyphRefElement'> - <attribute name='x' href='text.html#GlyphRefElementXAttribute'/> - <attribute name='y' href='text.html#GlyphRefElementYAttribute'/> - <attribute name='dx' href='text.html#GlyphRefElementDXAttribute'/> - <attribute name='dy' href='text.html#GlyphRefElementDYAttribute'/> - <attribute name='glyphRef' href='text.html#GlyphRefElementGlyphRefAttribute'/> - <attribute name='format' href='text.html#GlyphRefElementFormatAttribute'/> - </element> - - <element name='hatch' href='pservers.html#HatchElement' contentmodel='anyof' elementcategories='animation, descriptive' elements='hatchPath, script' attributecategories='core, presentation, style, xlink' interfaces='SVGHatchElement'> <attribute name='x' href='pservers.html#HatchElementXAttribute' animatable='yes'/> @@ -329,17 +273,17 @@ <attribute name='xlink:href' href='pservers.html#LinearGradientElementHrefAttribute' animatable='yes'/> </element> <element name='marker' href='painting.html#MarkerElement' contentmodel='anyof' elementcategories='animation, descriptive, shape, structural, paint server' - elements='a, clipPath, cursor, filter, foreignObject, image, marker, mask, script, style, switch, view, text, altGlyphDef' + elements='a, clipPath, cursor, filter, foreignObject, image, marker, mask, script, style, switch, view, text' attributecategories='core, presentation, style' attributes='viewBox, preserveAspectRatio' interfaces='SVGMarkerElement'> <attribute name='refX' href='painting.html#MarkerElementRefXAttribute' animatable='yes'/> <attribute name='refY' href='painting.html#MarkerElementRefYAttribute' animatable='yes'/> <attribute name='markerUnits' href='painting.html#MarkerUnitsAttribute' animatable='yes'/> <attribute name='markerWidth' href='painting.html#MarkerWidthAttribute' animatable='yes'/> <attribute name='markerHeight' href='painting.html#MarkerHeightAttribute' animatable='yes'/> @@ -413,17 +357,17 @@ <attribute name='pathLength' href='paths.html#PathLengthAttribute' animatable='yes'/> </element> <element name='pattern' href='pservers.html#PatternElement' contentmodel='anyof' elementcategories='animation, descriptive, shape, structural, paint server' - elements='a, altGlyphDef, clipPath, cursor, filter, foreignObject, image, marker, mask, script, style, switch, text, view' + elements='a, clipPath, cursor, filter, foreignObject, image, marker, mask, script, style, switch, text, view' attributecategories='core, presentation, style, xlink' attributes='viewBox, preserveAspectRatio' interfaces='SVGPatternElement'> <attribute name='x' href='pservers.html#PatternElementXAttribute' animatable='yes'/> <attribute name='y' href='pservers.html#PatternElementYAttribute' animatable='yes'/> <attribute name='width' href='pservers.html#PatternElementWidthAttribute' animatable='yes'/> <attribute name='height' href='pservers.html#PatternElementHeightAttribute' animatable='yes'/> <attribute name='patternUnits' href='pservers.html#PatternElementPatternUnitsAttribute' animatable='yes'/> @@ -562,17 +506,17 @@ <attribute name='title' href='styling.html#StyleElementTitleAttribute'/> </element> <element name='svg' href='struct.html#SVGElement' contentmodel='anyof' elementcategories='animation, descriptive, shape, structural, paint server' - elements='a, altGlyphDef, clipPath, cursor, filter, foreignObject, image, marker, mask, script, style, switch, text, view' + elements='a, clipPath, cursor, filter, foreignObject, image, marker, mask, script, style, switch, text, view' attributecategories='aria, navigation, conditional processing, core, document event, graphical event, presentation, style' attributes='viewBox, preserveAspectRatio, zoomAndPan' interfaces='SVGSVGElement'> <attribute name='x' href='struct.html#SVGElementXAttribute' animatable='yes'/> <attribute name='y' href='struct.html#SVGElementYAttribute' animatable='yes'/> <attribute name='width' href='struct.html#SVGElementWidthAttribute' animatable='yes' presentation='yes'/> <attribute name='height' href='struct.html#SVGElementHeightAttribute' animatable='yes' presentation='yes'/> <attribute name='playbackOrder' href='struct.html#SVGElementPlaybackOrderAttribute' animatable='no'/> @@ -589,17 +533,17 @@ interfaces='SVGSwitchElement'> </element> <element name='symbol' href='struct.html#SymbolElement' contentmodel='anyof' elementcategories='animation, descriptive, shape, structural, paint server' - elements='a, altGlyphDef, clipPath, cursor, filter, foreignObject, image, marker, mask, script, style, switch, text, view' + elements='a, clipPath, cursor, filter, foreignObject, image, marker, mask, script, style, switch, text, view' attributecategories='aria, navigation, core, graphical event, presentation, style' attributes='preserveAspectRatio, viewBox' interfaces='SVGSymbolElement'> </element> <element name='text' href='text.html#TextElement' @@ -619,17 +563,17 @@ <attribute name='width' href='text.html#TextElementWidthAttribute' animatable='yes'/> </element> <element name='textPath' href='text.html#TextPathElement' contentmodel='textoranyof' elementcategories='descriptive, paint server' - elements='a, altGlyph, animate, clipPath, marker, mask, script, set, tspan' + elements='a, animate, clipPath, marker, mask, script, set, tspan' attributecategories='aria, navigation, conditional processing, core, graphical event, presentation, style, xlink' attributes='lengthAdjust, textLength' interfaces='SVGTextPathElement'> <attribute name='d' href='text.html#TextPathElementDAttribute' animatable='yes'/> <attribute name='xlink:href' href='text.html#TextPathElementHrefAttribute' animatable='yes'/> <attribute name='startOffset' href='text.html#TextPathElementStartOffsetAttribute' animatable='yes'/> <attribute name='method' href='text.html#TextPathElementMethodAttribute' animatable='yes'/> <attribute name='spacing' href='text.html#TextPathElementSpacingAttribute' animatable='yes'/> @@ -662,17 +606,17 @@ </element> <element name='tspan' href='text.html#TSpanElement' contentmodel='textoranyof' elementcategories='descriptive, paint server' - elements='a, altGlyph, animate, script, set, tspan' + elements='a, animate, script, set, tspan' attributecategories='aria, navigation, conditional processing, core, graphical event, presentation, style' attributes='x, y, dx, dy, rotate, textLength, lengthAdjust' interfaces='SVGTSpanElement'> </element> <element name='use' href='struct.html#UseElement' @@ -729,18 +673,18 @@ <elementcategory name='gradient' href='intro.html#TermGradientElement' elements='linearGradient, radialGradient, meshGradient'/> <elementcategory name='graphics' href='intro.html#TermGraphicsElement' elements='path, text, rect, circle, ellipse, line, polyline, polygon, image, use, foreignObject, iframe, video, audio, canvas'/> <elementcategory name='graphics referencing' href='intro.html#TermGraphicsReferencingElement' elements='use, image, iframe, video, audio'/> <elementcategory name='light source' href='intro.html#TermLightSourceElement' elements='feDistantLight, fePointLight, feSpotLight'/> <elementcategory name='markable' href='intro.html#TermMarkableElement' elements='path, line, polyline, polygon'/> <elementcategory name='paint server' href='intro.html#TermPaintServerElement' elements='solidColor, linearGradient, radialGradient, meshGradient, pattern, hatch'/> <elementcategory name='shape' href='intro.html#TermShapeElement' elements='circle, ellipse, line, path, polygon, polyline, rect'/> <elementcategory name='structural' href='intro.html#TermStructuralElement' elements='defs, g, svg, symbol, use'/> - <elementcategory name='text content' href='intro.html#TermTextContentElement' elements='text, tspan, textPath, altGlyph'/> - <elementcategory name='text content child' href='intro.html#TermTextContentChildElement' elements='tspan, textPath, altGlyph'/> + <elementcategory name='text content' href='intro.html#TermTextContentElement' elements='text, tspan, textPath'/> + <elementcategory name='text content child' href='intro.html#TermTextContentChildElement' elements='tspan, textPath'/> <elementcategory name='structurally external' href='intro.html#TermStructurallyExternalElement' elements='script, image, use, iframe, video, audio, foreignObject'/> <!-- ... attributes common to multiple elements ........................ --> <!-- Note: An <attribute> defined here applies only to the listed elements if a list is given in 'elements', otherwise, it applies to all <element>s that include the attribute name in their 'attribute' attribute. @@ -757,18 +701,18 @@ <attribute name='rotate' elements='tspan' href='text.html#TSpanElementRotateAttribute' animatable='yes'/> <attribute name='textLength' elements='textPath, tspan' href='text.html#TSpanElementTextLengthAttribute' animatable='yes'/> <attribute name='lengthAdjust' elements='text, textPath, tspan' href='text.html#TextElementLengthAdjustAttribute' animatable='yes'/> <!-- attribute common to text content block elements --> <!-- <attribute name='width' elements='text' href='text.html#TextElementWidthAttribute' animatable='yes'/> --> <!-- xlink:show and xlink:actuate for all elements supporting the XLink attributes, except a --> - <attribute name='xlink:show' elements='animate, set, animateMotion, mpath, animateTransform, filter, feImage, cursor, pattern, hatch, script, textPath, use, image, altGlyph, linearGradient, radialGradient, meshGradient' href='linking.html#XLinkShowAttribute'/> - <attribute name='xlink:actuate' elements='animate, set, animateMotion, mpath, animateTransform, filter, feImage, cursor, pattern, hatch, script, textPath, use, image, altGlyph, linearGradient, radialGradient, meshGradient' href='linking.html#XLinkActuateAttribute'/> + <attribute name='xlink:show' elements='animate, set, animateMotion, mpath, animateTransform, filter, feImage, cursor, pattern, hatch, script, textPath, use, image, linearGradient, radialGradient, meshGradient' href='linking.html#XLinkShowAttribute'/> + <attribute name='xlink:actuate' elements='animate, set, animateMotion, mpath, animateTransform, filter, feImage, cursor, pattern, hatch, script, textPath, use, image, linearGradient, radialGradient, meshGradient' href='linking.html#XLinkActuateAttribute'/> <!-- attribute common to all animation elements --> <attribute name='xlink:href' elements='animate, animateMotion, animateTransform, set' href='animate.html#HrefAttribute'/> <!-- misc: Applies to all <element>s that include attribute name in 'attribute'. --> <attribute name='viewBox' href='coords.html#ViewBoxAttribute' animatable='yes'/> <attribute name='preserveAspectRatio' href='coords.html#PreserveAspectRatioAttribute' animatable='yes'/> <attribute name='zoomAndPan' href='interact.html#ZoomAndPanAttribute'/> @@ -1123,20 +1067,16 @@ <interface name='SVGLineElement' href='shapes.html#InterfaceSVGLineElement'/> <interface name='SVGPolylineElement' href='shapes.html#InterfaceSVGPolylineElement'/> <interface name='SVGPolygonElement' href='shapes.html#InterfaceSVGPolygonElement'/> <interface name='SVGAnimatedPoints' href='shapes.html#InterfaceSVGAnimatedPoints'/> <interface name='SVGTextElement' href='text.html#InterfaceSVGTextElement'/> <interface name='SVGTSpanElement' href='text.html#InterfaceSVGTSpanElement'/> <interface name='SVGTRefElement' href='text.html#InterfaceSVGTRefElement'/> <interface name='SVGTextPathElement' href='text.html#InterfaceSVGTextPathElement'/> - <interface name='SVGAltGlyphElement' href='text.html#InterfaceSVGAltGlyphElement'/> - <interface name='SVGAltGlyphDefElement' href='text.html#InterfaceSVGAltGlyphDefElement'/> - <interface name='SVGAltGlyphItemElement' href='text.html#InterfaceSVGAltGlyphItemElement'/> - <interface name='SVGGlyphRefElement' href='text.html#InterfaceSVGGlyphRefElement'/> <interface name='SVGTextContentElement' href='text.html#InterfaceSVGTextContentElement'/> <interface name='SVGTextPositioningElement' href='text.html#InterfaceSVGTextPositioningElement'/> <interface name='SVGMarkableElement' href='painting.html#InterfaceSVGMarkableElement'/> <interface name='SVGMarkerElement' href='painting.html#InterfaceSVGMarkerElement'/> <interface name='SVGMarkerInstance' href='painting.html#InterfaceSVGMarkerInstance'/> <interface name='SVGMarkerList' href='painting.html#InterfaceSVGMarkerList'/> <interface name='SVGColorProfileRule' href='color.html#InterfaceSVGColorProfileRule'/> <interface name='SVGLinearGradientElement' href='pservers.html#InterfaceSVGLinearGradientElement'/> diff --git a/master/feature.html b/master/feature.html --- a/master/feature.html +++ b/master/feature.html @@ -239,17 +239,17 @@ the SVG 1.0 feature strings can be consi <dd>http://www.w3.org/TR/SVG11/feature#Shape</dd> <dt>User Agent Supports:</dt> <dd>the <a>'rect'</a>, <a>'circle'</a>, <a>'line'</a>, <a>'polyline'</a>, <a>'polygon'</a>, <a>'ellipse'</a> and <a>'path'</a> elements</dd> </dl> <dl id="Text"> <dt>Feature String:</dt> <dd>http://www.w3.org/TR/SVG11/feature#Text</dd> <dt>User Agent Supports:</dt> - <dd>the <a>'text'</a>, <a>'tspan'</a>, <a>'textPath'</a>, <a>'altGlyph'</a>, <a>'altGlyphDef'</a>, <a>'altGlyphItem'</a> and <a>'glyphRef'</a> elements</dd> + <dd>the <a>'text'</a>, <a>'tspan'</a> and <a>'textPath'</a> elements</dd> </dl> <dl id="BasicText"> <dt>Feature String:</dt> <dd>http://www.w3.org/TR/SVG11/feature#BasicText</dd> <dt>User Agent Supports:</dt> <dd>the <a>'text'</a> element</dd> </dl> <dl id="PaintAttribute"> diff --git a/master/idlindex.html b/master/idlindex.html --- a/master/idlindex.html +++ b/master/idlindex.html @@ -21,19 +21,16 @@ <li><a>DOMMatrix</a></li> <li><a>DOMMatrixReadOnly</a></li> <li><a>DOMPoint</a></li> <li><a>DOMPointReadOnly</a></li> <li><a>DOMRect</a></li> <li><a>DOMRectReadOnly</a></li> <li><a>GetSVGDocument</a></li> <li><a>SVGAElement</a></li> - <li><a>SVGAltGlyphDefElement</a></li> - <li><a>SVGAltGlyphElement</a></li> - <li><a>SVGAltGlyphItemElement</a></li> <li><a>SVGAngle</a></li> <li><a>SVGAnimateElement</a></li> <li><a>SVGAnimateMotionElement</a></li> <li><a>SVGAnimateTransformElement</a></li> <li><a>SVGAnimatedAngle</a></li> <li><a>SVGAnimatedBoolean</a></li> <li><a>SVGAnimatedEnumeration</a></li> <li><a>SVGAnimatedInteger</a></li> @@ -57,17 +54,16 @@ <li><a>SVGDescElement</a></li> <li><a>SVGDocument</a></li> <li><a>SVGElement</a></li> <li><a>SVGEllipseElement</a></li> <li><a>SVGFitToViewBox</a></li> <li><a>SVGForeignObjectElement</a></li> <li><a>SVGGElement</a></li> <li><a>SVGGeometryElement</a></li> - <li><a>SVGGlyphRefElement</a></li> <li><a>SVGGradientElement</a></li> <li><a>SVGGraphicsElement</a></li> <li><a>SVGImageElement</a></li> <li><a>SVGLength</a></li> <li><a>SVGLengthList</a></li> <li><a>SVGLineElement</a></li> <li><a>SVGLinearGradientElement</a></li> <li><a>SVGMPathElement</a></li> diff --git a/master/linking.html b/master/linking.html --- a/master/linking.html +++ b/master/linking.html @@ -165,17 +165,16 @@ agents.)</p> themselves are treated as invalid circular references.</li> </ul> <p>The following list describes the elements and properties that allow URL references and the valid target types for those references:</p> <ul> <li>the <a>'a'</a> element can reference any local or non-local resource</li> - <li>the <a>'altGlyph'</a> element must reference an <a>'altGlyphDef'</a> element</li> <li>the <a>'animate'</a> element (see <a href="animate.html#TargetElement">Identifying the target element for an animation</a> for reference rules)</li> <li>the <a>'animateMotion'</a> element (see <a href="animate.html#TargetElement">Identifying the target element for an animation</a> for reference rules)</li> <li>the <a>'animateTransform'</a> element (see <a href="animate.html#TargetElement">Identifying the target element for an animation</a> for reference rules)</li> <li>the <a>'clip-path'</a> property must reference a <a>'clipPath'</a> element</li> <li>the <a href="color.html#ColorProfileSrcProperty">'src'</a> descriptor on an @color-profile definition must reference an ICC profile resource</li> <li>the <a>'cursor element'</a> element must reference a resource that can provide an image for the cursor graphic</li> <li>the <a>'cursor property'</a> property must reference a resource that can provide an image for the cursor graphic</li> <li>the <a>'feImage'</a> element must reference any local or non-local resource</li> diff --git a/master/propidx.html b/master/propidx.html --- a/master/propidx.html +++ b/master/propidx.html @@ -38,29 +38,29 @@ other specifications.</p> </thead> <tbody> <tr> <th><a>'alignment-baseline'</a></th> <td>auto | baseline | before-edge | text-before-edge | middle | central | after-edge | text-after-edge | ideographic | alphabetic | hanging | mathematical </td> <td>see property description</td> - <td><a>'tspan'</a>, <a>'altGlyph'</a>, <a>'textPath'</a> elements</td> + <td><a>'tspan'</a>, <a>'textPath'</a> elements</td> <td>no</td> <td>N/A</td> <td><a href="http://www.w3.org/TR/2008/REC-CSS2-20080411/media.html#visual-media-group">visual</a></td> <td>yes</td> </tr> <tr> <th><a>'baseline-shift'</a></th> <td>baseline | sub | super | <a href="types.html#DataTypePercentage"><percentage></a> | <a href="types.html#DataTypeLength"><length></a> </td> <td>baseline</td> - <td><a>'tspan'</a>, <a>'altGlyph'</a>, <a>'textPath'</a> elements</td> + <td><a>'tspan'</a>, <a>'textPath'</a> elements</td> <td>no</td> <td>refer to the "line height" of the <a>'text'</a> element, which in the case of SVG is defined to be equal to the font size</td> <td><a href="http://www.w3.org/TR/2008/REC-CSS2-20080411/media.html#visual-media-group">visual</a></td> <td>yes</td> </tr> <tr class="ready-for-wider-review"> <th><a>'buffered-rendering'</a></th> @@ -164,17 +164,17 @@ other specifications.</p> <td>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 </td> <td>inline</td> <td><a>'svg'</a>, <a>'g'</a>, <a>'switch'</a>, <a>'a'</a>, <a>'foreignObject'</a>, graphics elements (including the <a>'text'</a> element) and text - sub-elements (i.e., <a>'tspan'</a>, <a>'altGlyph'</a>, <a>'textPath'</a>)</td> + sub-elements (i.e., <a>'tspan'</a>, <a>'textPath'</a>)</td> <td>no</td> <td>N/A</td> <td><a href="http://www.w3.org/TR/2008/REC-CSS2-20080411/media.html#all-media-group"> all</a></td> <td>yes</td> </tr> <tr> <th><a>'dominant-baseline'</a></th> <td>auto | use-script | no-change | reset-size | @@ -670,17 +670,17 @@ other specifications.</p> <td><a href="http://www.w3.org/TR/2008/REC-CSS2-20080411/media.html#visual-media-group">visual</a></td> <td>yes</td> </tr> <tr> <th><a>'visibility'</a></th> <td>visible | hidden | collapse </td> <td>visible</td> <td>graphics elements (including the <a>'text'</a> element) and text - sub-elements (i.e., <a>'tspan'</a>, <a>'altGlyph'</a>, <a>'textPath'</a> and <a>'a'</a>)</td> + sub-elements (i.e., <a>'tspan'</a>, <a>'textPath'</a> and <a>'a'</a>)</td> <td>yes</td> <td>N/A</td> <td><a href="http://www.w3.org/TR/2008/REC-CSS2-20080411/media.html#visual-media-group">visual</a></td> <td>yes</td> </tr> <tr> <th><a>'word-spacing'</a></th> <td>normal | <a href="types.html#DataTypeLength"><length></a> </td> diff --git a/master/struct.html b/master/struct.html --- a/master/struct.html +++ b/master/struct.html @@ -596,17 +596,17 @@ define a <a>'linearGradient'</a> element <pre class='xml'><![CDATA[ <rect style="fill:url(#MyGradient)"/> ]]></pre> <p>Some types of element, such as gradients, will not by themselves produce a graphical result. They can therefore be placed anywhere convenient. However, sometimes it is desired to define a graphical object and prevent it from being directly rendered. it is only there to be referenced elsewhere. To do this, and to allow convenient grouping defined content, SVG provides the <span class='element-name'>'defs'</span> element.</p> <p>It is recommended that, wherever possible, referenced elements be defined inside of a <a>'defs'</a> element. Among the elements that are always -referenced: <a>'altGlyphDef'</a>, <a>'clipPath'</a>, <a>'cursor element'</a>, +referenced: <a>'clipPath'</a>, <a>'cursor element'</a>, <a>'filter element'</a>, <a>'linearGradient'</a>, <a>'marker element'</a>, <a>'mask element'</a>, <a>'pattern'</a>, <a>'radialGradient'</a> and <a>'symbol'</a>. Defining these elements inside of a <a>'defs'</a> element promotes understandability of the SVG content and thus promotes accessibility.</p> <p class="issue">Again this claim about accessibility is dubious.</p> @@ -1392,17 +1392,17 @@ assumed.</p> attributes only affect the direct rendering of elements and do not prevent elements from being successfully referenced by other elements (such as via a <a>'use'</a>).</p> <p>In consequence:</p> <ul> <li><a>'requiredFeatures'</a>, <a>'requiredExtensions'</a> and <a>'systemLanguage'</a> attributes affect - <a>'a'</a>, <a>'altGlyph'</a>, <a>'foreignObject'</a>, <a>'textPath'</a>, and <a>'tspan'</a> elements.</li> + <a>'a'</a>, <a>'foreignObject'</a>, <a>'textPath'</a>, and <a>'tspan'</a> elements.</li> <li><a>'requiredFeatures'</a>, <a>'requiredExtensions'</a> and <a>'systemLanguage'</a> attributes will have no effect on the <a>'clipPath'</a>, <a>'filter element'</a>, <a>'marker element'</a>, <a>'mask element'</a>, <a>'pattern'</a> and <a>'symbol'</a> elements or on <a>gradient elements</a>.</li> <li><a>'requiredFeatures'</a>, <a>'requiredExtensions'</a> and <a>'systemLanguage'</a> attributes do not apply to the <a>'defs'</a>, and <a>'cursor element'</a> elements because @@ -1857,31 +1857,16 @@ specifications. [<a href="refs.html#ref- </thead> <tbody> <tr><td><a>'a'</a></td> <td><code title="attr-aria-role-link">link</code> role</td> <td>no restrictions</td> </tr> <tr> - <td><a>'altGlyph'</a></td> - <td><code title="attr-aria-role-preseentation">presentation</code> role provided no associated <a>'title'</a> element, <a>'desc'</a> element, <a>'aria-label'</a> attribute, <a>'aria-labelledby'</a> attribute, or <a>'aria-describedby'</a> attribute; otherwise, <code title="attr-aria-role-group">group</code> role</td> - <td>no restrictions</td> - </tr> - <tr> - <td><a>'altGlyphDef'</a></td> - <td>none</td> - <td>no role may be applied</td> - </tr> - <tr> - <td><a>'altGlyphItem'</a></td> - <td><code title="attr-aria-role-preseentation">presentation</code> role provided no associated <a>'title'</a> element, <a>'desc'</a> element, <a>'aria-label'</a> attribute, <a>'aria-labelledby'</a> attribute, or <a>'aria-describedby'</a> attribute; otherwise, <code title="attr-aria-role-group">group</code> role</td> - <td>no restrictions</td> - </tr> - <tr> <td><a>'animate'</a></td> <td>none</td> <td>no role may be applied</td> </tr> <tr> <td><a>'animateMotion'</a></td> <td>none</td> <td>no role may be applied</td> diff --git a/master/styling.html b/master/styling.html --- a/master/styling.html +++ b/master/styling.html @@ -1220,18 +1220,17 @@ XML grammar. In user agents that support sheets, <a href='http://www.w3.org/TR/2011/REC-CSS2-20110607/aural.html'>aural style properties</a> ([<a href='refs.html#ref-CSS21'>CSS21</a>], chapter 19) can be applied as defined in CSS 2.1.</p> <p>Aural style properties can be applied to any SVG element that can contain character data content, including <a>'desc'</a> <a>'title'</a> -<a>'tspan'</a>, -<a>'altGlyph'</a> and +<a>'tspan'</a> and <a>'textPath'</a>. On user agents that support aural style sheets, the following CSS 2.1 properties can be applied:</p> <p class="issue">The above list misses <a>'a'</a>, which can be within a <a>'text'</a> element. Is there a conformance class in CSS we can link to for "user agents that support aural style sheets"? Are aural properties still relevant?</p> diff --git a/master/text.html b/master/text.html --- a/master/text.html +++ b/master/text.html @@ -600,19 +600,18 @@ swash forms, old-style figures etc. whil <a href="text.html#RelationshipWithBiDirectionality">bidirectionality</a> reordering) at the initial <a>current text position</a> (with possible adjustments due to the value of the <a>'text-anchor'</a> property or the <a>'text-align'</a> property). For pre-formatted text and for auto-wrapped text where the <a>content area</a> is determined by a <a>'text/width'</a> or <a>'text/height'</a> attribute, the initial <a>current text position</a> is determined by the <a>'tspan/x'</a> and - <a>'tspan/y'</a> values of the <a>'text'</a>, <a>'tspan'</a> or - <a>'altGlyph'</a> element which contains the - first rendered character. + <a>'tspan/y'</a> values of the <a>'text'</a> or <a>'tspan'</a> + element which contains the first rendered character. For auto-wrapped text in a shape or text on a path see the <a href="text.html#TextLayoutAuto">Auto-wrapped text</a> or <a href="text.html#TextLayoutPath">Text on a path</a> sections, respectively, to determine the initial <a>current text position</a>. After the glyph(s) corresponding to the given character is (are) @@ -2488,17 +2487,17 @@ swash forms, old-style figures etc. whil </div> <p> The <a>'writing-mode'</a> property specifies whether the initial inline-progression-direction for a <a>'text'</a> element shall be left-to-right, right-to-left, or top-to-bottom. The <a>'writing-mode'</a> property applies only to <a>'text'</a> elements; the property is ignored for <a>'tspan'</a>, - <a>'altGlyph'</a>, and <a>'textPath'</a> sub-elements. (Note that + and <a>'textPath'</a> sub-elements. (Note that the inline-progression-direction can change within a <a>'text'</a> element due to the Unicode bidirectional algorithm and properties <a>'direction'</a> and <a>'unicode-bidi'</a>. For more on bidirectional text, see <a href="text.html#RelationshipWithBiDirectionality">Relationship with bidirectionality</a>.) </p> @@ -3227,19 +3226,18 @@ swash forms, old-style figures etc. whil <dfn id='relative-position-adjustment'>relative position adjustments</dfn>. An absolute position adjustment occurs in the following circumstances: </p> <ul> <li>At the start of a <a>'text'</a> element</li> <li>At the start of each <a>'textPath'</a> element</li> - <li>For each character within a <a>'text'</a>, <a>'tspan'</a> and - <a>'altGlyph'</a> element which for - pre-formatted text has an explicit + <li>For each character within a <a>'text'</a> and <a>'tspan'</a> + element which for pre-formatted text has an explicit <span class='attr-name'>'x'</span> or <span class='attr-name'>'y'</span> value, or for text on a path has an explicit <span class='attr-name'>'x'</span> value if horizontal or <span class='attr-name'>'y'</span> value if vertical.</li> </ul> <p> @@ -3529,18 +3527,18 @@ swash forms, old-style figures etc. whil <a href="http://www.w3.org/TR/2008/REC-xml-20081126/#sec-line-ends">XML end-of-line handling</a>.) </p> <p> Any features in the SVG language or the SVG DOM that are based on character position number, such as the <a>'tspan/x'</a>, <a>'tspan/y'</a>, <a>'tspan/dx'</a>, <a>'tspan/dy'</a> and - <a>'tspan/rotate'</a> attributes on the <a>'text'</a>, <a>'tspan'</a> - and <a>'altGlyph'</a> elements, are based on + <a>'tspan/rotate'</a> attributes on the <a>'text'</a> and <a>'tspan'</a> + elements, are based on character position after applying the white space handling rules described here. In particular, if <span class='attr-value'>xml:space="default"</span>, it is often the case that white space characters are removed as part of processing. Character position numbers index into the text string after the white space characters have been removed per the rules in this section. </p> @@ -4184,18 +4182,18 @@ swash forms, old-style figures etc. whil If this property occurs on a <a>'text'</a> element, then the computed value depends on the value of the <a>'writing-mode'</a> property. If the 'writing-mode' is horizontal, then the value of the dominant-baseline component is 'alphabetic', else if the 'writing-mode' is vertical, then the value of the dominant-baseline component is 'central'. </p> <p> - If this property occurs on a <a>'tspan'</a>, - <a>'altGlyph'</a> or <a>'textPath'</a> element, then the + If this property occurs on a <a>'tspan'</a> + or <a>'textPath'</a> element, then the dominant-baseline and the baseline-table components remain the same as those of the parent <a>text content element</a>. If the computed <a>'baseline-shift'</a> value actually shifts the baseline, then the baseline-table font-size component is set to the value of the <a>'font-size'</a> property on the element on which the <a>'dominant-baseline'</a> property occurs, otherwise the baseline-table font-size remains the same as that of the element. If there is no parent <a>text content @@ -4355,17 +4353,17 @@ swash forms, old-style figures etc. whil ideographic | alphabetic | hanging | mathematical</td> </tr> <tr> <th>Initial:</th> <td>auto</td> </tr> <tr> <th>Applies to:</th> - <td><a>'tspan'</a>, <a>'altGlyph'</a>, <a>'textPath'</a> elements</td> + <td><a>'tspan'</a>, <a>'textPath'</a> elements</td> </tr> <tr> <th>Inherited:</th> <td>no</td> </tr> <tr> <th>Percentages:</th> <td>N/A</td> @@ -4474,17 +4472,17 @@ swash forms, old-style figures etc. whil </td> </tr> <tr> <th>Initial:</th> <td>baseline</td> </tr> <tr> <th>Applies to:</th> - <td><a>'tspan'</a>, <a>'altGlyph'</a>, <a>'textPath'</a> elements</td> + <td><a>'tspan'</a>, <a>'textPath'</a> elements</td> </tr> <tr> <th>Inherited:</th> <td>no</td> </tr> <tr> <th>Percentages:</th> <td>refers to the "line-height" of the <a>'text'</a> element, which @@ -4693,18 +4691,17 @@ swash forms, old-style figures etc. whil <h3 id="TextLayoutPreAdjustments">Adjusting Text Chunks</h3> <p> After text is laid out according to the basic CSS text layout rules, glyphs can be repositioned using SVG specific rules. Two types of adjustments can be made. The first uses the <a>'tspan/x'</a>, <a>'tspan/y'</a>, <a>'tspan/dx'</a>, <a>'tspan/dy'</a>, <a>'tspan/rotate'</a> attributes to reposition - glyphs with in a <a>'tspan'</a>, or - <a>'altGlyph'</a> element. The second uses the + glyphs with in a <a>'tspan'</a> element. The second uses the <a>'text-anchor'</a> property to realign lines of text. </p> <h4 id="TextLayoutPreXY">Repositioning Glyphs</h4> <p class="issue"> Expand on how 'x' and 'y' effect characters. </p> @@ -4724,17 +4721,17 @@ swash forms, old-style figures etc. whil The <a>'text-anchor'</a> property is applied to each individual <a href="text.html#TextChunks">text chunk</a> within a given <a>'text'</a> element. Each text chunk has an initial current text position, which represents the point in the user coordinate system resulting from (depending on context) application of the <a>'text/x'</a> and <a>'text/y'</a> attributes on the <a>'text'</a> element, any <a>'tspan/x'</a> or <a>'tspan/y'</a> attribute values on a <a>'tspan'</a> - or <a>'altGlyph'</a> element assigned explicitly to + element assigned explicitly to the first rendered character in a text chunk, or determination of the initial current text position for a <a>'textPath'</a> element. </p> <table class="propdef"> <tr> <th>Name:</th> <td><dfn id="TextAnchorProperty">text-anchor</dfn></td> @@ -5539,30 +5536,29 @@ style="font-weight:bold; color:green">tr parallel to the tangent at the path at its end point so that the midpoint-on-the-path can still be calculated. </p> <p> When the <a href="text.html#SettingInlineProgressionDirection">inline-progression-direction</a> is horizontal, then any <span class="attr-name">'x'</span> - attributes on <a>'text'</a>, <a>'tspan'</a> - or <a>'altGlyph'</a> elements represent new absolute offsets along + attributes on <a>'text'</a> or <a>'tspan'</a> + elements represent new absolute offsets along the path, thus providing explicit new values for startpoint-on-the-path. Any <span class="attr-name">'y'</span> - attributes on <a>'text'</a>, <a>'tspan'</a> - or <a>'altGlyph'</a> elements are ignored. When the + attributes on <a>'text'</a> or <a>'tspan'</a> + elements are ignored. When the <a href="text.html#SettingInlineProgressionDirection">inline-progression-direction</a> is vertical, then any <span class="attr-name">'y'</span> - attributes on <a>'text'</a>, <a>'tspan'</a> - or <a>'altGlyph'</a> elements represent new absolute offsets along + attributes on <a>'text'</a> or <a>'tspan'</a> + elements represent new absolute offsets along the path, thus providing explicit new values for startpoint-on-the-path. Any <span class="attr-name">'x'</span> - attributes on <a>'text'</a>, <a>'tspan'</a> or - <a>'altGlyph'</a> elements are ignored. + attributes on <a>'text'</a> or <a>'tspan'</a> elements are ignored. </p> </edit:with> <h2 id="TextRenderingOrder">Text rendering order</h2> <p> The glyphs associated with the characters within a <a>'text'</a> @@ -6321,439 +6317,16 @@ style="font-weight:bold; color:green">tr specifies a value for <a>'text-decoration'</a>; thus, its underline is rendered using the fill and stroke properties as the <a>'tspan'</a> element that surrounds the word "different" (i.e., yellow fill, darkgreen stroke): </p> <edit:example href='images/text/textdecoration01.svg' name='textdecoration01' description="behavior of 'text-decoration' property" image='yes' link='yes'/> -<h2 id="AlternateGlyphs">Alternate glyphs</h2> - - <p> - There are situations such as ligatures, special-purpose fonts - (e.g., a font for music symbols) or alternate glyphs for Asian - text strings where it is required that a different set of glyphs - is used than the glyph(s) which normally corresponds to the given - character data. - </p> - -<h3 id="AltGlyphElement">The <span class="element-name">'altGlyph'</span> element</h3> - -<edit:with element='altGlyph'> - - <p> - The <a>'altGlyph'</a> element provides control over the glyphs - used to render particular character data. - </p> - - <edit:elementsummary name='altGlyph'/> - -<h4 id="AltGlyphAttributes">Attributes</h4> - - <dl class="attrdef-list-svg2"> - <dt id="AltGlyphElementHrefAttribute"><span class="adef">xlink:href</span></dt> - <dd> - - <p> - An <a href="linking.html#URLReference">URL reference</a> - to an <a>'altGlyphDef'</a> element. - </p> - <p> - If an appropriate set of alternate glyphs is located from - processing the <a>'altGlyphDef'</a> element, then those - alternate glyphs are rendered instead of the character(s) that - are inside of the <a>'altGlyph'</a> element. - </p> - - <dl class="attrdef-svg2"> - <dt>Value</dt> <dd><a><url></a></dd> - <dt><a>Lacuna value</a></dt> <dd></dd> - <dt><a>Animatable</a></dt> <dd>no</dd> - </dl> - - </dd> - - <dt id="AltGlyphElementGlyphRefAttribute"><span class="adef">glyphRef</span></dt> - <dd> - <p> - The glyph identifier, the format of which is dependent on - the <a>'format'</a> of the given font. (Same meaning as - the <a>'glyphRef/glyphRef'</a> attribute on the - <a>'glyphRef element'</a> element.) - </p> - - <dl class="attrdef-svg2"> - <dt>Value</dt> <dd><string></dd> - <dt><a>Lacuna value</a></dt> <dd></dd> - <dt><a>Animatable</a></dt> <dd>no</dd> - </dl> - - </dd> - - <dt id="AltGlyphElementFormatAttribute"><span class="adef">format</span></dt> - <dd> - <p> - The format of the given font. If the font is - in <a href="http://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#referencing">one - of the formats listed in CSS2</a>, such as <em>TrueDocâ„¢ - Portable Font Resource</em> or <em>Embedded OpenType</em>, - then the <string> must contain the corresponding font - format string, such as <em>truedoc-pfr</em> or - <em>embedded-opentype</em>. (This attribute has the same meaning - as the <a>'glyphRef/format'</a> attribute on the <a>'glyphRef - element'</a> element.) - <span class="issue">This refers to CSS 2; it needs to be - reviewed against the formats described by CSS3 Fonts.</span> - </p> - - <dl class="attrdef-svg2"> - <dt>Value</dt> <dd><string></dd> - <dt><a>Lacuna value</a></dt> <dd>undefined</dd> - <dt><a>Animatable</a></dt> <dd>no</dd> - </dl> - - </dd> - - <dt id="AltGlyphElementXAttribute"><span class="adef">x</span></dt> - <dd> - <p> - The <a href="types.html#DataTypeLength"><length></a> - values are processed in the same manner as - the <a>'tspan/x'</a> attribute on the <a>'tspan'</a> element, - with the following exception: If the referenced alternate - glyphs are rendered instead of the Unicode characters inside - the <a>'altGlyph'</a> element, then any absolute X coordinates - specified via an <a>'x'</a> attribute on this element or any - ancestor <a>'text'</a> or <a>'tspan'</a> elements for Unicode - characters 2 through <var>n</var> within the <a>'altGlyph'</a> - element are ignored. Any absolute X coordinate specified via - an <a>'x'</a> attribute on this element or any - ancestor <a>'text'</a> or <a>'tspan'</a> elements for the - first Unicode character within the <a>'altGlyph'</a> element - sets a new absolute X coordinate for the <a >current text - position</a> before rendering the first alternate glyph. - </p> - - <dl class="attrdef-svg2"> - <dt>Value</dt> <dd><a href="types.html#DataTypeLengths"><list-of-coordinates></a></dd> - <dt><a>Lacuna value</a></dt> <dd>0</dd> - <dt><a>Animatable</a></dt> <dd>yes</dd> - </dl> - - </dd> - - <dt id="AltGlyphElementYAttribute"><span class="adef">y</span></dt> - <dd> - <p> - The corresponding absolute Y coordinates for rendering - the <a>'altGlyph'</a> element. - </p> - - <dl class="attrdef-svg2"> - <dt>Value</dt> <dd><a href="types.html#DataTypeLengths"><list-of-coordinates></a></dd> - <dt><a>Lacuna value</a></dt> <dd>0</dd> - <dt><a>Animatable</a></dt> <dd>yes</dd> - </dl> - - </dd> - - <dt id="AltGlyphElementDXAttribute"><span class="adef">dx</span></dt> - <dd> - <p> - The <a href="types.html#DataTypeLength"><length></a> - values are processed in the same manner as the <a>'tspan/dx'</a> - attribute on the <a>'tspan'</a> element, with the following - exception: If the referenced alternate glyphs are rendered - instead of the Unicode characters inside the <a>'altGlyph'</a> - element, then any relative X coordinates specified via - an <a>'dx'</a> attribute on this element or any ancestor - <a>'text'</a> or <a>'tspan'</a> elements for Unicode characters - 2 through <var>n</var> within the <a>'altGlyph'</a> element are - ignored. Any relative X coordinate specified via an <a>'dx'</a> - attribute on this element or any ancestor <a>'text'</a> - or <a>'tspan'</a> elements for the first Unicode character - within the <a>'altGlyph'</a> element sets a new relative X - coordinate for the <a >current text position</a> before - rendering the first alternate glyph. - </p> - - <dl class="attrdef-svg2"> - <dt>Value</dt> <dd><a href="types.html#DataTypeLengths"><list-of-lengths></a></dd> - <dt><a>Lacuna value</a></dt> <dd>See above.</dd> - <dt><a>Animatable</a></dt> <dd>yes</dd> - </dl> - - </dd> - - <dt id="AltGlyphElementDYAttribute"><span class="adef">dy</span></dt> - <dd> - <p> - The corresponding relative Y coordinates for rendering - the <a>'altGlyph'</a> element. - </p> - - <dl class="attrdef-svg2"> - <dt>Value</dt> <dd><a href="types.html#DataTypeLengths"><list-of-lengths></a></dd> - <dt><a>Lacuna value</a></dt> <dd>See above.</dd> - <dt><a>Animatable</a></dt> <dd>yes</dd> - </dl> - - </dd> - - <dt id="AltGlyphElementRotateAttribute"><span class="adef">rotate</span> = "<span class="attr-value"></span>"</dt> - <dd> - <p> - The <a href="types.html#DataTypeNumber"><number></a> - values are processed in the same manner as - the <a>'tspan/rotate'</a> attribute on the <a>'tspan'</a> - element, with the following exception: If the referenced - alternate glyphs are rendered instead of the Unicode characters - inside the <a>'altGlyph'</a> element, then any supplemental - rotation values specified via an - <a>'rotate'</a> attribute on this element or any ancestor - <a>'text'</a> or <a>'tspan'</a> elements for Unicode characters - 2 through <var>n</var> within the <a>'altGlyph'</a> element are - ignored. Supplemental rotation values specified via - an <a>'rotate'</a> attribute on this element or any - ancestor <a>'text'</a> or <a>'tspan'</a> elements for the first - Unicode character within the <a>'altGlyph'</a> element sets a - new supplemental rotation angle before rendering the alternate - glyphs. - </p> - - <dl class="attrdef-svg2"> - <dt>Value</dt> <dd><a href="types.html#DataTypeNumbers"><list-of-numbers></a></dd> - <dt><a>Lacuna value</a></dt> <dd>See above.</dd> - <dt><a>Animatable</a></dt> <dd>yes (non-additive)</dd> - </dl> - - </dd> - - </dl> - - <p> - If the references to alternate glyphs do not result in successful - identification of alternate glyphs to use, then the character(s) - that are inside of the <a>'altGlyph'</a> element are rendered as - if the <a>'altGlyph'</a> element were a <a>'tspan'</a> element - instead.</p> <p>An <a>'altGlyph'</a> element references - an <a>'altGlyphDef'</a> element via its - <a>'xlink:href'</a> attribute or identifies a glyph by means of - <a href="text.html#FontPropertiesUsedBySVG">font selection - properties</a>, a glyph identifier and a font format. If - the <a>'xlink:href'</a> attribute is specified, it takes - precedence, and the other glyph identification attributes and - properties are ignored.</p> - -</edit:with> - -<h3 id="AlternateGlyphDefinitions">The <span class="element-name">'altGlyphDef'</span>, -<span class="element-name">'altGlyphItem'</span> and -<span class="element-name">'glyphRef'</span> elements</h3> - - <p id="AltGlyphDefElement"> - The <a>'altGlyphDef'</a> element defines a set of possible glyph - substitutions. - </p> - - <edit:elementsummary name='altGlyphDef'/> - - <p> - An <a>'altGlyphDef'</a> can contain either of the following: - </p> - - <ul> - <li> - In the simplest case, an <a>'altGlyphDef'</a> contains one or - more <a>'glyphRef'</a> elements. Each <a>'glyphRef'</a> element - references a single glyph within a particular font. If all of - the referenced glyphs are available, then these glyphs are - rendered instead of the character(s) inside of the referencing - <a>'altGlyph'</a> element. If any of the referenced glyphs are - unavailable, then the character(s) that are inside of the - <a>'altGlyph'</a> element are rendered as if there were not - an <a>'altGlyph'</a> element surrounding those characters. - </li> - - <li> - In the more complex case, an <a>'altGlyphDef'</a> contains one - or more <a>'altGlyphItem'</a> elements. Each - <a>'altGlyphItem'</a> represents a candidate set of substitute - glyphs. Each <a>'altGlyphItem'</a> contains one or more - <a>'glyphRef'</a> elements. Each <a>'glyphRef'</a> element - references a single glyph within a particular font. The - first <a>'altGlyphItem'</a> in which all referenced glyphs are - available is chosen. The glyphs referenced from - this <a>'altGlyphItem'</a> are rendered instead of the - character(s) that are inside of the referencing - <a>'altGlyph'</a> element. If none of the <a>'altGlyphItem'</a> - elements result in a successful match (i.e., none of - the <a>'altGlyphItem'</a> elements has all of its referenced - glyphs available), then the character(s) that are inside of - the <a>'altGlyph'</a> element are rendered as if there were not - an <a>'altGlyph'</a> element surrounding those characters. - </li> - </ul> - - <p id="AltGlyphItemElement"> - The <a>'altGlyphItem'</a> element defines a candidate set of - possible glyph substitutions. The first <a>'altGlyphItem'</a> - element whose referenced glyphs are all available is chosen. Its - glyphs are rendered instead of the character(s) that are inside of - the referencing <a>'altGlyph'</a> element. - </p> - - <edit:elementsummary name='altGlyphItem'/> - -<edit:with element='glyphRef'> - - <p id="GlyphRefElement"> - The <a>'glyphRef element'</a> element defines a possible glyph to - use. - </p> - - <edit:elementsummary name='glyphRef'/> - -<h4 id="GlyphRefAttributes">Attributes</h4> - - <dl class="attrdef-list-svg2"> - <dt id="GlyphRefElementGlyphRefAttribute"><span class="adef">glyphRef</span></dt> - <dd> - <p> - The glyph identifier, the format of which is dependent on - the <a>'format'</a> of the given font. - </p> - - <dl class="attrdef-svg2"> - <dt>Value</dt> <dd><string></dd> - <dt><a>Lacuna value</a></dt> <dd></dd> - <dt><a>Animatable</a></dt> <dd>no</dd> - </dl> - - </dd> - - <dt id="GlyphRefElementFormatAttribute"><span class="adef">format</span></dt> - <dd> - <p> - The format of the given font. If the font is in - <a href="http://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#referencing">one - of the formats listed in CSS2</a>, such as <em>TrueDocâ„¢ - Portable Font Resource</em> or <em>Embedded OpenType</em>, - then the <string> must contain the corresponding font - format string, such as <em>truedoc-pfr</em> or - <em>embedded-opentype</em>. <span class="issue">This refers to - CSS 2; it needs to be reviewed against the formats described - by CSS3 Fonts.</span> - </p> - - <dl class="attrdef-svg2"> - <dt>Value</dt> <dd><string></dd> - <dt><a>Lacuna value</a></dt> <dd>undefined</dd> - <dt><a>Animatable</a></dt> <dd>no</dd> - </dl> - - </dd> - - <dt id="GlyphRefElementXAttribute"><span class="adef">x</span></dt> - <dd> - <p> - This value represents the new absolute X coordinate within the - font's coordinate system for this glyph. - </p> - <p> - The font coordinate system is based on the <em>em square</em> - model described in the - <a href="http://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html">Fonts - chapter</a> of CSS2. <span class='issue'>CSS3 Fonts doesn't - talk about the em square much.</span> - </p> - <p> - If the attribute is not specified, for the first <a>'glyphRef - element'</a> child element, the effect is as if the attribute - were set to "0", whereas for subsequent <a>'glyphRef - element'</a> child elements, the effect is as if the attribute - were set to the end X coordinate from the previous - <a>'glyphRef element'</a> element. - </p> - - <dl class="attrdef-svg2"> - <dt>Value</dt> <dd><a href="types.html#DataTypeNumber"><number></a></dd> - <dt><a>Lacuna value</a></dt> <dd>See above.</dd> - <dt><a>Animatable</a></dt> <dd>No</dd> - </dl> - - </dd> - - <dt id="GlyphRefElementYAttribute"><span class="adef">y</span></dt> - <dd> - <p> - The corresponding new absolute Y coordinate within the font's - coordinate system for this glyph. - </p> - - <dl class="attrdef-svg2"> - <dt>Value</dt> <dd><a href="types.html#DataTypeNumber"><number></a></dd> - <dt><a>Lacuna value</a></dt> <dd>See above.</dd> - <dt><a>Animatable</a></dt> <dd>No</dd> - </dl> - - </dd> - - <dt id="GlyphRefElementDXAttribute"><span class="adef">dx</span></dt> - <dd> - <p> - This value represents the relative X coordinate within the - font's coordinate system for this glyph. The glyph is thus - shifted by <span class="attr-value"><number></span> - units along the positive X axis within the font's coordinate - system supplemental to the absolute X coordinate established - by the <a>'x'</a> attribute (either due to an - explicit <a>'x'</a> attribute or due to default value - processing for the <a>'x'</a> attribute). - </p> - - <dl class="attrdef-svg2"> - <dt>Value</dt> <dd><a href="types.html#DataTypeNumber"><number></a></dd> - <dt><a>Lacuna value</a></dt> <dd>0</dd> - <dt><a>Animatable</a></dt> <dd>No</dd> - </dl> - - </dd> - - <dt id="GlyphRefElementDYAttribute"><span class="adef">dy</span></dt> - <dd> - <p> - The corresponding number of units within the font's coordinate - system to shift the glyph along the positive Y axis relative - to the absolute Y coordinate established by the <a>'y'</a> - attribute. - </p> - - <dl class="attrdef-svg2"> - <dt>Value</dt> <dd><a href="types.html#DataTypeNumber"><number></a></dd> - <dt><a>Lacuna value</a></dt> <dd>0</dd> - <dt><a>Animatable</a></dt> <dd>No</dd> - </dl> - - </dd> - </dl> - - <p> - A <a>'glyphRef element'</a> identifies a glyph by means - of <a href="text.html#FontPropertiesUsedBySVG">font selection - properties</a>, a glyph identifier and a font format. If - insufficient attributes and properties have been specified to - identify a glyph, then the <a>'glyphRef element'</a> is processed - in the same manner as when a glyph reference is fully specified, - but the given glyph is not available. - </p> - -</edit:with> - <h2 id="TextSelection">Text selection and clipboard operations</h2> <p> <a href="conform.html#ConformingSVGViewers">Conforming SVG viewers</a> on systems which have the capacity for text selection (e.g., systems which are equipped with a pointer device such as a mouse) and which have system clipboards for copy/paste operations are required to support: @@ -6880,17 +6453,17 @@ style="font-weight:bold; color:green">tr </table> </div> <h3 id="InterfaceSVGTextContentElement">Interface SVGTextContentElement</h3> <p> The <a>SVGTextContentElement</a> is inherited by various text-related interfaces, such as <a>SVGTextElement</a>, - <a>SVGTSpanElement</a>, <a>SVGTRefElement</a>, <a>SVGAltGlyphElement</a> + <a>SVGTSpanElement</a>, <a>SVGTRefElement</a>, and <a>SVGTextPathElement</a>. </p> <p> For the methods on this interface that refer to an index to a character or a number of characters, these references are to be interpreted as an index to a UTF-16 code unit or a number of UTF-16 code units, respectively. This is for consistency with DOM @@ -7402,18 +6975,18 @@ than or equal to the number of character </dd> </dl> <h3 id="InterfaceSVGTextPositioningElement">Interface SVGTextPositioningElement</h3> The <a>SVGTextPositioningElement</a> interface is inherited by text-related -interfaces: <a>SVGTextElement</a>, <a>SVGTSpanElement</a>, -<a>SVGTRefElement</a> and <a>SVGAltGlyphElement</a>. +interfaces: <a>SVGTextElement</a>, <a>SVGTSpanElement</a> +and <a>SVGTRefElement</a>. <pre class="idl">interface <b>SVGTextPositioningElement</b> : <a>SVGTextContentElement</a> { readonly attribute <a class="idlinterface" href="types.html#InterfaceSVGAnimatedLengthList">SVGAnimatedLengthList</a> <a href="text.html#__svg__SVGTextPositioningElement__x">x</a>; readonly attribute <a class="idlinterface" href="types.html#InterfaceSVGAnimatedLengthList">SVGAnimatedLengthList</a> <a href="text.html#__svg__SVGTextPositioningElement__y">y</a>; readonly attribute <a class="idlinterface" href="types.html#InterfaceSVGAnimatedLengthList">SVGAnimatedLengthList</a> <a href="text.html#__svg__SVGTextPositioningElement__dx">dx</a>; readonly attribute <a class="idlinterface" href="types.html#InterfaceSVGAnimatedLengthList">SVGAnimatedLengthList</a> <a href="text.html#__svg__SVGTextPositioningElement__dy">dy</a>; readonly attribute <a class="idlinterface" href="types.html#InterfaceSVGAnimatedNumberList">SVGAnimatedNumberList</a> <a href="text.html#__svg__SVGTextPositioningElement__rotate">rotate</a>; };</pre><dl class="interface"> <dt class="attributes-header">Attributes:</dt> @@ -7622,160 +7195,10 @@ Corresponds to attribute <a>'spacing'</a </div> </dd> </dl> </dd> </dl> </edit:with> - -<h3 id="InterfaceSVGAltGlyphElement">Interface SVGAltGlyphElement</h3> - - -<edit:with element='altGlyph'> - -<p>The <a>SVGAltGlyphElement</a> interface corresponds to the <a>'altGlyph'</a> element.</p> - -<pre class="idl">interface <b>SVGAltGlyphElement</b> : <a>SVGTextPositioningElement</a> { - attribute DOMString <a href="text.html#__svg__SVGAltGlyphElement__glyphRef">glyphRef</a>; - attribute DOMString <a href="text.html#__svg__SVGAltGlyphElement__format">format</a>; -}; - -<a>SVGAltGlyphElement</a> implements <a>SVGURIReference</a>;</pre> - -<dl class="interface"> -<dt class="attributes-header">Attributes:</dt> -<dd> -<dl class="attributes"> - -<dt id="__svg__SVGAltGlyphElement__glyphRef" class="attribute first-child"><b>glyphRef</b><span class="idl-type-parenthetical"> (DOMString)</span></dt> -<dd class="attribute"> -<div> -Corresponds to attribute <a>'glyphRef attribute'</a> on the given -element. - - -</div> -</dd> - -<dt id="__svg__SVGAltGlyphElement__format" class="attribute"><b>format</b><span class="idl-type-parenthetical"> (DOMString)</span></dt> -<dd class="attribute"> -<div> -Corresponds to attribute <a>'format'</a> on the given element. - - -</div> -</dd> -</dl> -</dd> -</dl> - -</edit:with> - - -<h3 id="InterfaceSVGAltGlyphDefElement">Interface SVGAltGlyphDefElement</h3> - - -<edit:with element='altGlyphDef'> - -The <a>SVGAltGlyphDefElement</a> interface corresponds to the -<a>'altGlyphDef'</a> element. -<pre class="idl">interface <b>SVGAltGlyphDefElement</b> : <a>SVGElement</a> { -};</pre> - -</edit:with> - -<h3 id="InterfaceSVGAltGlyphItemElement">Interface SVGAltGlyphItemElement</h3> - - -<edit:with element='altGlyphItem'> - -The <a>SVGAltGlyphItemElement</a> interface corresponds to the -<a>'altGlyphItem'</a> element. -<pre class="idl">interface <b>SVGAltGlyphItemElement</b> : <a>SVGElement</a> { -};</pre> - -</edit:with> - -<h3 id="InterfaceSVGGlyphRefElement">Interface SVGGlyphRefElement</h3> - - -<edit:with element='glyphRef'> - -<p>The <a>SVGGlyphRefElement</a> interface corresponds to the <a>'glyphRef element'</a> element.</p> - -<pre class="idl">interface <b>SVGGlyphRefElement</b> : <a>SVGElement</a> { - attribute DOMString <a href="text.html#__svg__SVGGlyphRefElement__glyphRef">glyphRef</a>; - attribute DOMString <a href="text.html#__svg__SVGGlyphRefElement__format">format</a>; - attribute float <a href="text.html#__svg__SVGGlyphRefElement__x">x</a>; - attribute float <a href="text.html#__svg__SVGGlyphRefElement__y">y</a>; - attribute float <a href="text.html#__svg__SVGGlyphRefElement__dx">dx</a>; - attribute float <a href="text.html#__svg__SVGGlyphRefElement__dy">dy</a>; -};</pre> - -<dl class="interface"> -<dt class="attributes-header">Attributes:</dt> -<dd> -<dl class="attributes"> - -<dt id="__svg__SVGGlyphRefElement__glyphRef" class="attribute first-child"><b>glyphRef</b><span class="idl-type-parenthetical"> (DOMString)</span></dt> -<dd class="attribute"> -<div> -Corresponds to attribute <a>'glyphRef attribute'</a> on the given -element. - - -</div> -</dd> - -<dt id="__svg__SVGGlyphRefElement__format" class="attribute"><b>format</b><span class="idl-type-parenthetical"> (DOMString)</span></dt> -<dd class="attribute"> -<div> -Corresponds to attribute <a>'format'</a> on the given element. - - -</div> -</dd> - -<dt id="__svg__SVGGlyphRefElement__x" class="attribute"><b>x</b><span class="idl-type-parenthetical"> (float)</span></dt> -<dd class="attribute"> -<div> -Corresponds to attribute <a>'x'</a> on the given element. - - -</div> -</dd> - -<dt id="__svg__SVGGlyphRefElement__y" class="attribute"><b>y</b><span class="idl-type-parenthetical"> (float)</span></dt> -<dd class="attribute"> -<div> -Corresponds to attribute <a>'y'</a> on the given element. - - -</div> -</dd> - -<dt id="__svg__SVGGlyphRefElement__dx" class="attribute"><b>dx</b><span class="idl-type-parenthetical"> (float)</span></dt> -<dd class="attribute"> -<div> -Corresponds to attribute <a>'dx'</a> on the given element. - - -</div> -</dd> - -<dt id="__svg__SVGGlyphRefElement__dy" class="attribute"><b>dy</b><span class="idl-type-parenthetical"> (float)</span></dt> -<dd class="attribute"> -<div> -Corresponds to attribute <a>'dy'</a> on the given element. - - -</div> -</dd> -</dl> -</dd> -</dl> - -</edit:with> - </body> </html>
Received on Thursday, 26 June 2014 15:41:51 UTC