- From: SVG Working Group repository <cam+svgwgrepo@mcc.id.au>
- Date: Mon, 02 Jun 2014 23:11:59 -0700
- To: public-svg-wg@w3.org
details: https://svgwg.org/hg/svg2/rev/4c8efa7bbe28 branches: changeset: 681:4c8efa7bbe28 user: Cameron McCormack <cam@mcc.id.au> date: Tue Jun 03 16:07:38 2014 +1000 description: Remove <tref> per resolution at http://www.w3.org/2014/05/08-svg-minutes.html#item02. diffstat: master/changes.html | 5 +- master/definitions.xml | 38 ++++-------- master/feature.html | 2 +- master/linking.html | 3 - master/propidx.html | 8 +- master/struct.html | 7 +- master/styling.html | 1 - master/text.html | 151 +++++++----------------------------------------- 8 files changed, 44 insertions(+), 171 deletions(-) diffs (784 lines): diff --git a/master/changes.html b/master/changes.html --- a/master/changes.html +++ b/master/changes.html @@ -168,26 +168,28 @@ have been made.</p> <li>Added new <strong>B</strong> and <strong>b</strong> "bearing" path commands.</li> </ul> <h3 id="text">Text chapter</h3> <ul> <li>Added a number of missing attributes to the element summary boxes of the - <a>'text'</a>, <a>'textPath'</a> and <a>'tref'</a> elements.</li> + <a>'text'</a> and <a>'textPath'</a> elements.</li> <li>Added <a>'text/width'</a> attribute to <a>'text'</a>, and a section about <a>'text-overflow'</a> processing.</li> <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> </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 @@ -300,17 +302,16 @@ have been made.</p> <li>Replaced DOMFocusIn and DOMFocusOut with focusin and focusout, and added the blur event.</li> <li>Added keyboard events.</li> <li>Removed mutation events.</li> </ul> <h3 id="linking">Linking chapter</h3> <ul> - <li>Removed the restriction on <a>'tref'</a> only being able to reference SVG elements.</li> <li>Added <a>animation elements</a> to the content model of <a>'view'</a>.</li> <li>Added the possibility to link to SVG resources with fragment identifiers defined by the Media Fragments specification.</li> </ul> <h3 id="script">Scripting chapter</h3> <ul> <li>Removed the <span class="attr-name">'contentScriptType'</span> attribute.</li> diff --git a/master/definitions.xml b/master/definitions.xml --- a/master/definitions.xml +++ b/master/definitions.xml @@ -619,17 +619,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, tref, tspan' + elements='a, altGlyph, 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'/> @@ -658,33 +658,21 @@ <attribute name='src' href='http://www.w3.org/TR/html5/embedded-content-0.html#attr-track-src' animatable='yes'/> <attribute name='srclang' href='http://www.w3.org/TR/html5/embedded-content-0.html#attr-track-srclang' animatable='yes'/> <attribute name='label' href='http://www.w3.org/TR/html5/embedded-content-0.html#attr-track-label' animatable='yes'/> <attribute name='default' href='http://www.w3.org/TR/html5/embedded-content-0.html#attr-track-default' animatable='yes'/> </element> <element - name='tref' - href='text.html#TRefElement' - contentmodel='anyof' - elementcategories='descriptive, paint server' - elements='animate, script, set' - attributecategories='aria, navigation, conditional processing, core, graphical event, presentation, style, xlink' - attributes='x, y, dx, dy, rotate, textLength, lengthAdjust' - interfaces='SVGTRefElement'> - <attribute name='xlink:href' elements='tref' href='text.html#TRefElementHrefAttribute' animatable='yes'/> - </element> - - <element name='tspan' href='text.html#TSpanElement' contentmodel='textoranyof' elementcategories='descriptive, paint server' - elements='a, altGlyph, animate, script, set, tref, tspan' + elements='a, altGlyph, 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' @@ -741,46 +729,46 @@ <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, tref, textPath, altGlyph'/> - <elementcategory name='text content child' href='intro.html#TermTextContentChildElement' elements='tspan, tref, textPath, altGlyph'/> + <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='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. --> <!-- attributes common to both desc and title --> <attribute name='lang' elements='desc, title' href='struct.html#LangAttribute'/> <!-- attributes common to text elements --> - <attribute name='x' elements='tref, tspan' href='text.html#TSpanElementXAttribute' animatable='yes'/> - <attribute name='y' elements='tref, tspan' href='text.html#TSpanElementYAttribute' animatable='yes'/> - <attribute name='dx' elements='tref, tspan' href='text.html#TSpanElementDXAttribute' animatable='yes'/> - <attribute name='dy' elements='tref, tspan' href='text.html#TSpanElementDYAttribute' animatable='yes'/> - <attribute name='rotate' elements='tref, tspan' href='text.html#TSpanElementRotateAttribute' animatable='yes'/> - <attribute name='textLength' elements='textPath, tref, tspan' href='text.html#TSpanElementTextLengthAttribute' animatable='yes'/> - <attribute name='lengthAdjust' elements='text, textPath, tref, tspan' href='text.html#TextElementLengthAdjustAttribute' animatable='yes'/> + <attribute name='x' elements='tspan' href='text.html#TSpanElementXAttribute' animatable='yes'/> + <attribute name='y' elements='tspan' href='text.html#TSpanElementYAttribute' animatable='yes'/> + <attribute name='dx' elements='tspan' href='text.html#TSpanElementDXAttribute' animatable='yes'/> + <attribute name='dy' elements='tspan' href='text.html#TSpanElementDYAttribute' animatable='yes'/> + <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, tref, 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, tref, 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, 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 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'/> 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>'tref'</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>, <a>'textPath'</a>, <a>'altGlyph'</a>, <a>'altGlyphDef'</a>, <a>'altGlyphItem'</a> and <a>'glyphRef'</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/linking.html b/master/linking.html --- a/master/linking.html +++ b/master/linking.html @@ -184,19 +184,16 @@ references and the valid target types fo <li>the <a>'linearGradient'</a> element must reference a <a>'linearGradient'</a> or <a>'radialGradient'</a> element</li> <li>the <a>'marker property'</a>, <a>'marker-start'</a>, <a>'marker-mid'</a> and <a>'marker-end'</a> properties must reference a <a>'marker element'</a> element.</li> <li>the <a>'mask property'</a> property must reference a <a>'mask element'</a> element</li> <li>the <a>'pattern'</a> element must reference a <a>'pattern'</a> element</li> <li>the <a>'radialGradient'</a> element must reference a <a>'linearGradient'</a> or <a>'radialGradient'</a> element</li> <li>the <a>'script'</a> element must reference an external resource that provides the script content</li> <li>the <a>'stroke'</a> property (see <a href="painting.html#SpecifyingPaint">Specifying paint</a> for reference rules)</li> <li>the <a>'textPath'</a> element must reference a <a>'path'</a> element</li> - <li> - <div class="ready-for-wider-review">the <a>'tref'</a> element can reference any element (including non-SVG elements)</div> - </li> <li>the <a>'set'</a> element (see <a href="animate.html#TargetElement">Identifying the target element for an animation</a> for reference rules)</li> <li>the <a>'use'</a> element can reference any local or non-local resource</li> </ul> <p>The following rules apply to the processing of invalid IRI references:</p> <ul> <li>An invalid local IRI reference (i.e., an invalid references to a node 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>'tref'</a>, <a>'altGlyph'</a>, <a>'textPath'</a> elements</td> + <td><a>'tspan'</a>, <a>'altGlyph'</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>'tref'</a>, <a>'altGlyph'</a>, <a>'textPath'</a> elements</td> + <td><a>'tspan'</a>, <a>'altGlyph'</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>'tref'</a>, <a>'altGlyph'</a>, <a>'textPath'</a>)</td> + sub-elements (i.e., <a>'tspan'</a>, <a>'altGlyph'</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>'tref'</a>, <a>'altGlyph'</a>, <a>'textPath'</a> and <a>'a'</a>)</td> + sub-elements (i.e., <a>'tspan'</a>, <a>'altGlyph'</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 @@ -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>, <a>'tref'</a>, and <a>'tspan'</a> elements.</li> + <a>'a'</a>, <a>'altGlyph'</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 @@ -2237,21 +2237,16 @@ specifications. [<a href="refs.html#ref- <td>no role may be applied</td> </tr> <tr> <td><a>'track'</a></td> <td>none</td> <td>no role may be applied</td> </tr> <tr> - <td><a>'tref'</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>'tspan'</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>'use'</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> diff --git a/master/styling.html b/master/styling.html --- a/master/styling.html +++ b/master/styling.html @@ -1225,17 +1225,16 @@ sheets, <a href='http://www.w3.org/TR/20 ([<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>'tref'</a>, <a>'altGlyph'</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"? diff --git a/master/text.html b/master/text.html --- a/master/text.html +++ b/master/text.html @@ -600,18 +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>, - <a>'tref'</a>, or <a>'altGlyph'</a> element which contains the + <a>'tspan/y'</a> values of the <a>'text'</a>, <a>'tspan'</a> or + <a>'altGlyph'</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>. @@ -1564,106 +1564,16 @@ swash forms, old-style figures etc. whil The following diagram illustrates how the rotation values propagate to <a>'tspan'</a> elements nested withing a <a>'text'</a> element: </p> <img alt="Image that shows propagation of rotation values" src="images/text/tspan05-diagram.png" width="528" height="918" /> </edit:with> -<h2 id="TRefElement">The <span class="element-name">'tref'</span> element</h2> - - <div class="annotation svg2-requirement"> - <table> - <tr> - <th>SVG 2 Requirement:</th> - <td>Allow <a>'tref'</a> to point to non-SVG elements.</td> - </tr> - <tr> - <th>Resolution:</th> - <td><a href="http://lists.w3.org/Archives/Public/public-svg-wg/2009JulSep/att-0094/26-svg-minutes-last-topic.html#item01">We agree to remove the restriction of <span class="element-name">'tref'</span> pointing to only an SVG document fragment.</a></td> - </tr> - <tr> - <th>Purpose:</th> - <td>To allow easier text substitution.</td> - </tr> - <tr> - <th>Owner:</th> - <td>Cameron (<a href="http://www.w3.org/Graphics/SVG/WG/track/actions/3130">ACTION-3130</a>)</td> - </tr> - </table> - </div> - - <edit:with element='tref'> - - <p> - The textual content for a <a>'text'</a> can be either character data - directly embedded within the <a>'text'</a> element or the character data - content of a referenced element, where the referencing is specified with a - <a>'tref'</a> element. - </p> - - <edit:elementsummary name='tref'/> - -<h3 id="TRefAttributes">Attributes</h3> - - <dl class="attrdef-list-svg2"> - - <dt id="TRefElementHrefAttribute"><span class="adef">xlink:href</span></dt> - <dd> - - <p> - An <a>IRI reference</a> to an element whose character data - content shall be used as character data for this <a>'tref'</a> - element. - </p> - - <dl class="attrdef-svg2"> - <dt>Value</dt> <dd><a href="types.html#DataTypeIRI"><iri></a></dd> - <dt><a>Lacuna value</a></dt> <dd>As if not specified.</dd> - <dt><a>Animatable</a></dt> <dd>yes</dd> - </dl> - - </dd> - </dl> - -<h3 id="TRefNotes">Notes</h3> - - <p> - All character data within the referenced element, including - character data enclosed within additional markup, will be - rendered. - </p> - <p> - The <a>'x'</a>, <a>'y'</a>, <a>'dx'</a>, <a>'dy'</a> - and <a>'rotate'</a> attributes have the same meanings as for - the <a>'tspan'</a> element. The attributes are applied as if - the <a>'tref'</a> element was replaced by a - <a>'tspan'</a> with the referenced character data (stripped of all - supplemental markup) embedded within the hypothetical - <a>'tspan'</a> element. - </p> - - <p id="ExampleTRef01"> - <span class="example-ref">Example tref01</span> shows how to use - character data from a different element as the character data for - a given <a>'tspan'</a> element. The first <a>'text'</a> element - (with <span class='attr-value'>id="ReferencedText"</span>) will - not draw because it is part of a <a>'defs'</a> element. The - second <a>'text'</a> element draws the string "Inline character - data". The third <a>'text'</a> element draws the string "Reference - character data" because it includes a <a>'tref'</a> element which - is a reference to element "ReferencedText", and that element's - character data is "Referenced character data". - </p> - - <edit:example href='images/text/tref01.svg' name='tref01' description="inline vs reference text content" image='yes' link='yes'/> - -</edit:with> - <h2 id="TextLayout">Text layout – Introduction</h2> <div class="annotation svg2-requirement"> <table> <tr> <th>SVG 2 Requirement:</th> <td>Include text layout improvements from SVG Tiny 1.2.</td> </tr> @@ -2577,17 +2487,17 @@ swash forms, old-style figures etc. whil </p> </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>'tref'</a>, + elements; the property is ignored for <a>'tspan'</a>, <a>'altGlyph'</a>, 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> @@ -2739,33 +2649,32 @@ swash forms, old-style figures etc. whil direction</a> section of CSS 2.1 ([<a href="refs.html#ref-CSS21">CSS21</a>], section 9.10). </p> <p> The processing model for bidirectional text is as follows. The user agent processes the characters which are provided in <em>logical order</em> (i.e., the order the characters appear in - the original document, either via direct inclusion or via indirect - reference due a <a>'tref'</a> element). The user agent determines + the original document). The user agent determines the set of independent blocks within each of which it should apply the Unicode bidirectional algorithm. Each <a href="text.html#TextChunk">text chunk</a> represents an independent block of text. Additionally, any change in glyph orientation due to processing of properties <a>'glyph-orientation-horizontal'</a> or <a>'glyph-orientation-vertical'</a> will subdivide the independent blocks of text further. After processing the Unicode bidirectional algorithm and properties <a>'direction'</a> and <a>'unicode-bidi'</a> on each of the independent text blocks, the user agent will have a potentially re-ordered list of characters which are now in left-to-right rendering order. Simultaneous with re-ordering of the characters, the <a>'tspan/dx'</a>, <a>'tspan/dy'</a>, and <a>'tspan/rotate'</a> attributes on the - <a>'tspan'</a> and <a>'tref'</a> elements are also re-ordered to + <a>'tspan'</a> elements are also re-ordered to maintain the original correspondence between characters and attribute values. While kerning or ligature processing might be font-specific, the preferred model is that kerning and ligature processing occurs between combinations of characters or glyphs after the characters have been re-ordered. </p> <h4 id="BaseDirection">The <span class="property">'direction'</span> property</h4> @@ -3318,18 +3227,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>, - <a>'tref'</a> and <a>'altGlyph'</a> element which for + <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 <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> @@ -3620,18 +3529,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>, - <a>'tref'</a> and <a>'altGlyph'</a> elements, are based on + <a>'tspan/rotate'</a> attributes on the <a>'text'</a>, <a>'tspan'</a> + and <a>'altGlyph'</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> @@ -4275,17 +4184,17 @@ 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>'tref'</a>, + If this property occurs on a <a>'tspan'</a>, <a>'altGlyph'</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 @@ -4446,17 +4355,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>'tref'</a>, <a>'altGlyph'</a>, <a>'textPath'</a> elements</td> + <td><a>'tspan'</a>, <a>'altGlyph'</a>, <a>'textPath'</a> elements</td> </tr> <tr> <th>Inherited:</th> <td>no</td> </tr> <tr> <th>Percentages:</th> <td>N/A</td> @@ -4565,17 +4474,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>'tref'</a>, <a>'altGlyph'</a>, <a>'textPath'</a> elements</td> + <td><a>'tspan'</a>, <a>'altGlyph'</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 @@ -4784,17 +4693,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>, <a>'tref'</a>, or + glyphs with in a <a>'tspan'</a>, or <a>'altGlyph'</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. @@ -4814,18 +4723,18 @@ swash forms, old-style figures etc. whil <span class="issue">This is confusing, perhaps a figure would help:</span> 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>, - <a>'tref'</a> or <a>'altGlyph'</a> element assigned explicitly to + or <a>'tspan/y'</a> attribute values on a <a>'tspan'</a> + or <a>'altGlyph'</a> 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> @@ -4959,17 +4868,17 @@ swash forms, old-style figures etc. whil area</a> is inside a <a>shape</a>, the initial <a>current text position</a> is determined by <span class="issue">FIX ME, FIND WHERE IN CSS THIS IS SPECED.</span>. </p> <p> Except when used to determine the initial <a>current text position</a>, all values <a>'tspan/x'</a> and <a>'tspan/y'</a> - are ignored on <a>'text'</a>, <a>'tspan'</a>, and <a>'tref'</a> + are ignored on <a>'text'</a>, and <a>'tspan'</a> elements. </p> <p class="note"> The attributes <a>'text/x'</a> and <a>'text/y'</a> can provide a natural fallback mechanism for SVG1.1 renderers for wrapped text. <span class="issue">Provide an example (actually, all the example SVG's displayed in this section do this).</span>. @@ -5630,29 +5539,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>, <a>'tref'</a> + attributes on <a>'text'</a>, <a>'tspan'</a> or <a>'altGlyph'</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>, <a>'tref'</a> + attributes on <a>'text'</a>, <a>'tspan'</a> or <a>'altGlyph'</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>, <a>'tref'</a> + attributes on <a>'text'</a>, <a>'tspan'</a> or <a>'altGlyph'</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>, <a>'tref'</a> or + attributes on <a>'text'</a>, <a>'tspan'</a> or <a>'altGlyph'</a> elements are ignored. </p> </edit:with> <h2 id="TextRenderingOrder">Text rendering order</h2> <p> @@ -7083,23 +6992,21 @@ defined on this interface. <dl class="attributes"> <dt id="__svg__SVGTextContentElement__getNumberOfChars" class="operation first-child">long <b>getNumberOfChars</b>() </dt> <dd class="operation"> <div> Returns the total number of characters available for rendering within -the current element, which includes referenced characters from -<a>'tref'</a> reference, regardless of whether they will be rendered. +the current element, regardless of whether they will be rendered. Effectively, this is equivalent to the length of the <a href="http://www.w3.org/TR/dom/#dom-node-textcontent">Node::textContent</a> attribute from DOM4 ([<a href="refs.html#ref-DOM4">DOM4</a>], -section 5.4), if that attribute also expanded <a>'tref'</a> -elements. +section 5.4). </div> <dl class="operation"> <dt class="returns-header">Returns</dt> <dd> <div> Total number of characters. @@ -7583,30 +7490,16 @@ element. The <a>SVGTSpanElement</a> interface corresponds to the <a>'tspan'</a> element. <pre class="idl">interface <b>SVGTSpanElement</b> : <a>SVGTextPositioningElement</a> { };</pre> </edit:with> -<h3 id="InterfaceSVGTRefElement">Interface SVGTRefElement</h3> - - -<edit:with element='tref'> - -The <a>SVGTRefElement</a> interface corresponds to the <a>'tref'</a> -element. -<pre class="idl">interface <b>SVGTRefElement</b> : <a>SVGTextPositioningElement</a> { -}; - -<a>SVGTRefElement</a> implements <a>SVGURIReference</a>;</pre> - -</edit:with> - <h3 id="InterfaceSVGTextPathElement">Interface SVGTextPathElement</h3> <edit:with element='textPath'> The <a>SVGTextPathElement</a> interface corresponds to the <a>'textPath'</a> element. <pre class="idl">interface <b>SVGTextPathElement</b> : <a>SVGTextContentElement</a> {
Received on Tuesday, 3 June 2014 06:12:24 UTC