- From: SVG Working Group repository <cam@mcc.id.au>
- Date: Sat, 15 Sep 2012 14:20:22 -0700
- To: public-svg-wg@w3.org
details: https://svgwg.org/hg/svg2/rev/81f6b7c9a937 branches: changeset: 384:81f6b7c9a937 user: Cameron McCormack <cam@mcc.id.au> date: Sun Sep 16 06:13:13 2012 +1000 description: Use new-style attribute definition tables for 'use'. details: https://svgwg.org/hg/svg2/rev/3cf6dfd42ab8 branches: changeset: 385:3cf6dfd42ab8 user: Cameron McCormack <cam@mcc.id.au> date: Sun Sep 16 06:26:08 2012 +1000 description: Move attribute table for 'use' back to the end of the section. details: https://svgwg.org/hg/svg2/rev/baba1e8e1136 branches: changeset: 386:baba1e8e1136 user: Cameron McCormack <cam@mcc.id.au> date: Sun Sep 16 06:44:13 2012 +1000 description: Use new-style attribute definition tables for 'image'. details: https://svgwg.org/hg/svg2/rev/9f71b46b02f2 branches: changeset: 387:9f71b46b02f2 user: Cameron McCormack <cam@mcc.id.au> date: Sun Sep 16 06:52:38 2012 +1000 description: Use new-style attribute definition tables for conditional processing attributes. details: https://svgwg.org/hg/svg2/rev/253c8f8777d7 branches: changeset: 388:253c8f8777d7 user: Cameron McCormack <cam@mcc.id.au> date: Sun Sep 16 07:19:08 2012 +1000 description: Use new-style attribute definition tables for global attributes. diffstat: master/definitions.xml | 3 +- master/struct.html | 517 ++++++++++++++++++++++++------------------ master/style/default_svg.css | 26 ++ 3 files changed, 326 insertions(+), 220 deletions(-) diffs (717 lines): diff --git a/master/definitions.xml b/master/definitions.xml --- a/master/definitions.xml +++ b/master/definitions.xml @@ -1259,17 +1259,18 @@ href='intro.html#TermDecoratedBoundingBox'/> <term name='font' href='intro.html#TermFont'/> <term name='glyph' href='intro.html#TermGlyph'/> <term name='glyphs' href='intro.html#TermGlyph'/> <term name='hit-test' href='intro.html#TermHitTesting'/> <term name='hit-testing' href='intro.html#TermHitTesting'/> <term name='invalid' href='intro.html#TermInvalidValue'/> <term name='invalid value' href='intro.html#TermInvalidValue'/> - <term name='Lacuna value' href='intro.html#TermLacunaValue'/> + <term name='lacuna value' href='intro.html#TermLacunaValue'/> + <term name='lacuna values' href='intro.html#TermLacunaValue'/> <term name='Paint' href='intro.html#TermPaint'/> <term name='paint' href='intro.html#TermPaint'/> <term name='painting' href='intro.html#TermPaint'/> <term name='SVG canvas' href='intro.html#TermSVGCanvas'/> <term name='SVG context' href='intro.html#TermSVGContext'/> <term name='SVG document' href='intro.html#TermSVGDocumentFragment'/> <term name='SVG documents' href='intro.html#TermSVGDocumentFragment'/> <term name='SVG document fragment' href='intro.html#TermSVGDocumentFragment'/> diff --git a/master/struct.html b/master/struct.html --- a/master/struct.html +++ b/master/struct.html @@ -393,18 +393,18 @@ create SVG fragments.</p> <tr> <th>Name</th> <th>Value</th> <th>Lacuna value</th> <th>Animatable</th> </tr> <tr> <td><dfn id="SVGElementPreserveAspectRatioAttribute">preserveAspectRatio</dfn></td> - <td>[ defer ]? <a><align></a> [ meet | slice ]?</td> - <td>xMidYMid meet</td> + <td>defer? <a><align></a> [ meet | slice ]?</td> + <td>xMidYMid meet</td> <td>yes</td> </tr> </table> </dt> <dd> <p>Specifies the fitting behavior when the aspect ratio of the <a>'svg'</a> element does not match the aspect ratio of the rectangle it is placed in. See the definition of <a>'preserveAspectRatio'</a> for details.</p> @@ -1337,73 +1337,80 @@ illustrative purposes.</p> <p>When a <a>'use'</a> references another element which is another <a>'use'</a> or whose content contains a <a>'use'</a> element, then the deep cloning approach described above is recursive. However, a set of references that directly or indirectly reference a element to create a circular dependency is an error, as described in <a href="#Head">References and the <span class='element-name'>'defs'</span> element</a>.</p> -<div class="adef-list"> - <p><em>Attribute definitions:</em></p> - <dl> - <dt id="UseElementXAttribute"><span - class="adef">x</span> = "<span class="attr-value"><a - href="types.html#DataTypeCoordinate"><coordinate></a></span>"</dt> - <dd>The x-axis coordinate of one corner of the rectangular - region into which the referenced element is placed.<br /> - If the attribute is not specified, the effect is as if a - value of "0" were specified.<br /> - <span class="anim-target"><a - href="animate.html#Animatable">Animatable</a>: - yes.</span></dd> - <dt id="UseElementYAttribute"><span - class="adef">y</span> = "<span class="attr-value"><a - href="types.html#DataTypeCoordinate"><coordinate></a></span>"</dt> - <dd>The y-axis coordinate of one corner of the rectangular - region into which the referenced element is placed.<br /> - If the attribute is not specified, the effect is as if a - value of "0" were specified.<br /> - <span class="anim-target"><a - href="animate.html#Animatable">Animatable</a>: - yes.</span></dd> - <dt id="UseElementWidthAttribute"><span - class="adef">width</span> = "<span class="attr-value"><a - href="types.html#DataTypeLength"><length></a></span>"</dt> - <dd>The width of the rectangular region into which the - referenced element is placed. A negative value is an error - (see <a href="implnote.html#ErrorProcessing">Error - processing</a>). A value of zero disables rendering of this - element.<br /> - <span class="anim-target"><a - href="animate.html#Animatable">Animatable</a>: - yes.</span></dd> - <dt id="UseElementHeightAttribute"><span - class="adef">height</span> = "<span class="attr-value"><a - href="types.html#DataTypeLength"><length></a></span>"</dt> - <dd>The height of the rectangular region into which the - referenced element is placed. A negative value is an error - (see <a href="implnote.html#ErrorProcessing">Error - processing</a>). A value of zero disables rendering of this - element.<br /> - <span class="anim-target"><a - href="animate.html#Animatable">Animatable</a>: - yes.</span></dd> - <dt id="UseElementHrefAttribute"><span - class="adef">xlink:href</span> = "<span - class="attr-value"><a - href="types.html#DataTypeIRI"><iri></a></span>"</dt> - <dd>A <a href="linking.html#IRIReference">IRI - reference</a> to an element/fragment within an SVG - document.<br /> - <span class="anim-target"><a - href="animate.html#Animatable">Animatable</a>: - yes.</span></dd> - </dl> -</div> +<p><em>Attribute definitions:</em></p> + +<dl class="attrdef-list"> + <dt> + <table class="propdef attrdef"> + <tr> + <th>Name</th> + <th>Value</th> + <th>Lacuna value</th> + <th>Animatable</th> + </tr> + <tr> + <td><dfn id="UseElementXAttribute">x</dfn>, <dfn id="UseElementYAttribute">y</dfn></td> + <td><a><coordinate></a></td> + <td>0</td> + <td>yes</td> + </tr> + <tr> + <td><dfn id="UseElementWidthAttribute">width</dfn>, <dfn id="UseElementHeightAttribute">height</dfn></td> + <td><a><length></a></td> + <td>(see prose)</td> + <td>yes</td> + </tr> + </table> + </dt> + <dd> + <p>The <a>'x'</a>, <a>'y'</a>, <a>'width'</a> and <a>'height'</a> + attributes specify the positioning of the referenced element. + The <a>'width'</a> and <a>'height'</a> attributes have different + <a>lacuna values</a> depending on the type of the referenced element:</p> + <dl class='switch'> + <dt><a>'svg'</a></dt> + <dd>The <a>lacuna values</a> are the <a>'svg/width'</a> and <a>'svg/height'</a> + values from the referenced <a>'svg'</a> element.</dd> + <dt>anything else</dt> + <dd>The <a>lacuna values</a> are <span class='attr-value'>'100%'</span>.</dd> + </dl> + <p>A negative value for <a>'width'</a> or <a>'height'</a> is an error (see + <a href="implnote.html#ErrorProcessing">Error processing</a>). If + <a>'width'</a> or <a>'height'</a> is zero then rendering of the + <a>'use'</a> element is disabled.</p> + </dd> + <dt> + <table class="propdef attrdef"> + <tr> + <th>Name</th> + <th>Value</th> + <th>Lacuna value</th> + <th>Animatable</th> + </tr> + <tr> + <td><dfn id="UseElementHrefAttribute">href</dfn></td> + <td><a><iri></a></td> + <td>(none)</td> + <td>yes</td> + </tr> + </table> + </dt> + <dd> + <p>An <a href="linking.html#IRIReference">IRI reference</a> to the + element/fragment within an SVG document to be cloned for + rendering.</p> + </dd> +</dl> </edit:with> <h2 id="ImageElement">The <span class='element-name'>'image'</span> element</h2> <edit:with element='image'> <edit:elementsummary name='image'/> @@ -1550,84 +1557,91 @@ elements within an SVG file.</p> </tr> <tr> <th>Owner:</th> <td>Cameron or Erik (no action)</td> </tr> </table> </div> - <div class="adef-list"> - <p><em>Attribute definitions:</em></p> - <dl> - <dt id="ImageElementXAttribute"><span - class="adef">x</span> = "<span class="attr-value"><a - href="types.html#DataTypeCoordinate"><coordinate></a></span>"</dt> - <dd>The x-axis coordinate of one corner of the rectangular - region into which the referenced document is placed.<br /> - If the attribute is not specified, the effect is as if a - value of <span class="attr-value">'0'</span> were specified.<br /> - <span class="anim-target"><a - href="animate.html#Animatable">Animatable</a>: - yes.</span></dd> - <dt id="ImageElementYAttribute"><span - class="adef">y</span> = "<span class="attr-value"><a - href="types.html#DataTypeCoordinate"><coordinate></a></span>"</dt> - <dd>The y-axis coordinate of one corner of the rectangular - region into which the referenced document is placed.<br /> - If the attribute is not specified, the effect is as if a - value of <span class="attr-value">'0'</span> were specified.<br /> - <span class="anim-target"><a - href="animate.html#Animatable">Animatable</a>: - yes.</span></dd> - <dt id="ImageElementWidthAttribute"><span - class="adef">width</span> = "<span class="attr-value"><a - href="types.html#DataTypeLength"><length></a></span>"</dt> - <dd>The width of the rectangular region into which the - referenced document is placed.<br /> - A negative value is an error (see <a - href="implnote.html#ErrorProcessing">Error processing</a>). - A value of zero disables rendering of the element.<br /> - <span class="anim-target"><a - href="animate.html#Animatable">Animatable</a>: - yes.</span></dd> - <dt id="ImageElementHeightAttribute"><span - class="adef">height</span> = "<span class="attr-value"><a - href="types.html#DataTypeLength"><length></a></span>"</dt> - <dd>The height of the rectangular region into which the - referenced document is placed.<br /> - A negative value is an error (see <a - href="implnote.html#ErrorProcessing">Error processing</a>). - A value of zero disables rendering of the element.<br /> - <span class="anim-target"><a - href="animate.html#Animatable">Animatable</a>: - yes.</span></dd> - <dt id="ImageElementHrefAttribute"><span - class="adef">xlink:href</span> = "<span - class="attr-value"><a - href="types.html#DataTypeIRI"><iri></a></span>"</dt> - <dd>A <a href="linking.html#IRIReference">IRI - reference</a>.<br /> - <span class="anim-target"><a - href="animate.html#Animatable">Animatable</a>: - yes.</span></dd> - <dt id="ImageElementPreserveAspectRatioAttribute"> - <span class="adef">preserveAspectRatio</span> = "<span class='attr-value'><a href="coords.html#PreserveAspectRatioAttribute">[defer] <align> [<meetOrSlice>]</a></span>" - </dt> - <dd> - <p> - See <a>'preserveAspectRatio'</a>. - </p> - <p> - If attribute <a>'preserveAspectRatio'</a> is not specified, then the effect is as if a value of <span class="attr-value">xMidYMid meet</span> were specified. - </p> - <p><span class="anim-target"><a href="animate.html#Animatable">Animatable</a>: yes.</span></p> - </dd> - </dl> - </div> +<p><em>Attribute definitions:</em></p> + +<dl class="attrdef-list"> + <dt> + <table class="propdef attrdef"> + <tr> + <th>Name</th> + <th>Value</th> + <th>Lacuna value</th> + <th>Animatable</th> + </tr> + <tr> + <td><dfn id="ImageElementXAttribute">x</dfn>, <dfn id="ImageElementYAttribute">y</dfn></td> + <td><a><coordinate></a></td> + <td>0</td> + <td>yes</td> + </tr> + <tr> + <td><dfn id="ImageElementWidthAttribute">width</dfn>, <dfn id="ImageElementHeightAttribute">height</dfn></td> + <td><a><length></a></td> + <td>0</td> + <td>yes</td> + </tr> + </table> + </dt> + <dd> + <p>The <a>'x'</a>, <a>'y'</a>, <a>'width'</a> and <a>'height'</a> + attributes specify the rectangular region into which the referenced + image is placed.</p> + <p>A negative value for <a>'width'</a> or <a>'height'</a> is invalid + (see <a href="implnote.html#ErrorProcessing">Error processing</a>). + A value of zero for either attribute disables rendering of the element.</p> + </dd> + <dt> + <table class="propdef attrdef"> + <tr> + <th>Name</th> + <th>Value</th> + <th>Lacuna value</th> + <th>Animatable</th> + </tr> + <tr> + <td><dfn id="ImageElementHrefAttribute">xlink:href</dfn></td> + <td><a><iri></a></td> + <td>(none)</td> + <td>yes</td> + </tr> + </table> + </dt> + <dd> + <p>An <a href="linking.html#IRIReference">IRI reference</a> + identifying the image to render.</p> + </dd> + <dt> + <table class="propdef attrdef"> + <tr> + <th>Name</th> + <th>Value</th> + <th>Lacuna value</th> + <th>Animatable</th> + </tr> + <tr> + <td><dfn id="ImageElementPreserveAspectRatioAttribute">preserveAspectRatio</dfn></td> + <td>defer? <a><align></a> [ meet | slice ]?</td> + <td>xMidYMid meet</td> + <td>yes</td> + </tr> + </table> + </dt> + <dd> + <p>Specifies the fitting behavior when the aspect ratio of the referenced image + does not match the aspect ratio of the rectangle it is placed in. + See the definition of <a>'preserveAspectRatio'</a> for details.</p> + </dd> +</dl> <p>An example:</p> <pre> <?xml version="1.0" standalone="no"?> <svg width="4in" height="3in" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <desc>This graphic links to an external image @@ -1705,36 +1719,46 @@ has no effect on true/false testing asso element processing.</p> <p>For more information and an example, see <a href="extend.html#ForeignObjectElement">Embedding foreign object types</a>.</p> <h3 id="ConditionalProcessingRequiredFeaturesAttribute">The <span class='attr-name'>'requiredFeatures'</span> attribute</h3> - <div class="adef-list"> - <p>Definition of <span - class="adef">requiredFeatures</span>:</p> - <dl> - <dt id="RequiredFeaturesAttribute"><span class="adef">requiredFeatures</span> = - <em>list-of-features</em></dt> - <dd>The value is a list of feature strings, with the - individual values separated by white space. Determines - whether all of the named <em>features</em> are supported by - the user agent. Only feature strings defined in the <a - href="feature.html">Feature String</a> appendix are - allowed. If all of the given features are supported, then - the attribute evaluates to true; otherwise, the current - element and its children are skipped and thus will not be - rendered.<br /> - <span class="anim-target"><a - href="animate.html#Animatable">Animatable</a>: - no.</span></dd> - </dl> - </div> +<dl class="attrdef-list"> + <dt> + <table class="propdef attrdef"> + <tr> + <th>Name</th> + <th>Value</th> + <th>Lacuna value</th> + <th>Animatable</th> + </tr> + <tr> + <td><dfn id="RequiredFeaturesAttribute">requiredFeatures</dfn></td> + <td><em>list-of-features</em></td> + <td>(none)</td> + <td>no</td> + </tr> + </table> + </dt> + <dd> + <p class="issue">Need a grammar for <em>list-of-features</em>.</p> + <p>The value is a list of feature strings, with the + individual values separated by white space. Determines + whether all of the named <em>features</em> are supported by + the user agent. Only feature strings defined in the <a + href="feature.html">Feature String</a> appendix are + allowed. If all of the given features are supported, then + the attribute evaluates to true; otherwise, the current + element and its children are skipped and thus will not be + rendered.</p> + </dd> +</dl> <p>If the attribute is not present, then its implicit return value is "true". If a null string or empty string value is given to attribute <a>'requiredFeatures'</a>, the attribute returns "false".</p> <p><a>'requiredFeatures'</a> is often used in conjunction with the <a>'switch'</a> element. If the <a>'requiredFeatures'</a> is used in other @@ -1745,36 +1769,45 @@ element whether to render the element or <p>The <a>'requiredExtensions'</a> attribute defines a list of required language extensions. Language extensions are capabilities within a user agent that go beyond the feature set defined in this specification. Each extension is identified by an <a href="linking.html#IRIReference">IRI reference</a>.</p> - <div class="adef-list"> - <p>Definition of <span - class="adef">requiredExtensions</span>:</p> - <dl> - <dt id="RequiredExtensionsAttribute"><span class="adef">requiredExtensions</span> = - <em>list-of-extensions</em></dt> - <dd>The value is a list of <a - href="linking.html#IRIReference">IRI reference</a>s which - identify the required extensions, with the individual - values separated by white space. Determines whether all of - the named <em>extensions</em> are supported by the user - agent. If all of the given extensions are supported, then - the attribute evaluates to true; otherwise, the current - element and its children are skipped and thus will not be - rendered.<br /> - <span class="anim-target"><a - href="animate.html#Animatable">Animatable</a>: - no.</span></dd> - </dl> - </div> +<dl class="attrdef-list"> + <dt> + <table class="propdef attrdef"> + <tr> + <th>Name</th> + <th>Value</th> + <th>Lacuna value</th> + <th>Animatable</th> + </tr> + <tr> + <td><dfn id="ReuquiredExtensionsAttribute">requiredExtensions</dfn></td> + <td><em>list-of-extensions</em></td> + <td>(none)</td> + <td>no</td> + </tr> + </table> + </dt> + <dd> + <p>The value is a list of <a + href="linking.html#IRIReference">IRI reference</a>s which + identify the required extensions, with the individual + values separated by white space. Determines whether all of + the named <em>extensions</em> are supported by the user + agent. If all of the given extensions are supported, then + the attribute evaluates to true; otherwise, the current + element and its children are skipped and thus will not be + rendered.</p> + </dd> +</dl> <p>If a given <a href="linking.html#IRIReference">IRI reference</a> contains white space within itself, that white space must be escaped.</p> <p>If the attribute is not present, then its implicit return value is "true". If a null string or empty string value is given to attribute <a>'requiredExtensions'</a>, the attribute @@ -1856,16 +1889,18 @@ value is "true". If a null string or emp given to attribute <a>'systemLanguage'</a>, the attribute returns "false".</p> <p><a>'systemLanguage'</a> is often used in conjunction with the <a>'switch'</a> element. If the <a>'systemLanguage'</a> is used in other situations, then it represents a simple switch on the given element whether to render the element or not.</p> +<p class="issue">Should have an attribute definition table in this section.</p> + <h3 id="ApplicabilityOfTestAttributes">Applicability of test attributes</h3> <p>The following list describes the applicability of the test attributes to the elements that do not directly produce rendering.</p> <p class="issue">This was already mentioned in the "Conditional processing overview" section. We should just describe this once.</p> @@ -1885,39 +1920,61 @@ section. We should just describe this o </ul> <h2 id="CommonAttributes">Common attributes</h2> <h3 id="Core.attrib">Attributes common to all elements: <span class='attr-name'>'id'</span> and <span class='attr-name'>'xml:base'</span></h3> <p>The <a>'id'</a> and <a>'xml:base'</a> attributes are available on all SVG elements:</p> - <div class="adef-list"> - <p><em>Attribute definitions:</em></p> - <dl> - <dt id="IDAttribute"><span - class="adef">id</span> = "<span - class="attr-value">name</span>"</dt> - <dd>Standard XML attribute for assigning a unique - <em>name</em> to an element. Refer to the <a href="http://www.w3.org/TR/2008/REC-xml-20081126/"><cite>Extensible - Markup Language (XML) 1.0</cite></a> Recommendation [<a href="refs.html#ref-XML10">XML10</a>].<br /> - <span class="anim-target"><a - href="animate.html#Animatable">Animatable</a>: - no.</span></dd> - <dt id="XMLBaseAttribute"><span - class="adef">xml:base</span> = "<span class="attr-value"><a - href="types.html#DataTypeIRI"><iri></a></span>"</dt> - <dd>Specifies a base IRI other than the base IRI of the - document or external entity. Refer to the <a href="http://www.w3.org/TR/2009/REC-xmlbase-20090128/"><cite>XML Base</cite></a> - specification [<a href="refs.html#ref-XML-BASE">XML-BASE</a>].<br /> - <span class="anim-target"><a - href="animate.html#Animatable">Animatable</a>: - no.</span></dd> - </dl> - </div> +<dl class="attrdef-list"> + <dt> + <table class="propdef attrdef"> + <tr> + <th>Name</th> + <th>Value</th> + <th>Lacuna value</th> + <th>Animatable</th> + </tr> + <tr> + <td><dfn id="IDAttribute">id</dfn></td> + <td><em>name</em></td> + <td>(none)</td> + <td>no</td> + </tr> + </table> + </dt> + <dd> + <p class="issue">Need a grammar for <em>name</em>.</p> + <p>Standard XML attribute for assigning a unique + <em>name</em> to an element. Refer to the <a href="http://www.w3.org/TR/2008/REC-xml-20081126/"><cite>Extensible + Markup Language (XML) 1.0</cite></a> Recommendation [<a href="refs.html#ref-XML10">XML10</a>].</p> + </dd> + <dt> + <table class="propdef attrdef"> + <tr> + <th>Name</th> + <th>Value</th> + <th>Lacuna value</th> + <th>Animatable</th> + </tr> + <tr> + <td><dfn id="XMLBaseAttribute">xml:base</dfn></td> + <td><a><iri></a></td> + <td>(none)</td> + <td>no</td> + </tr> + </table> + </dt> + <dd> + <p>Specifies a base IRI other than the base IRI of the + document or external entity. Refer to the <a href="http://www.w3.org/TR/2009/REC-xmlbase-20090128/"><cite>XML Base</cite></a> + specification [<a href="refs.html#ref-XML-BASE">XML-BASE</a>].</p> + </dd> +</dl> <p class="issue">Are we happy to keep promoting the use of <span class="attr-name">'xml:base'</span>? Is it a use case worth trying to include a more HTML-like syntax for – the <span class="element-name">'base'</span> element? We anyway need to define somewhere what effect the HTML <span class="element-name">'base'</span> element has on any SVG document fragments.</p> <h3 id="LangSpaceAttrs">The <span class='attr-name'>'xml:lang'</span> and <span class='attr-name'>'xml:space'</span> attributes</h3> @@ -1945,45 +2002,67 @@ attributes <a>'xml:lang'</a> and <a>'xml <a href="http://www.w3.org/Graphics/SVG/WG/track/actions/3005">ACTION-3005</a>, done)</td> </tr> </table> </div> <p class="issue">Should we be moving <span class="attr-name">'lang'</span> instead of <span class="attr-name">'xlink:lang'</span>?</p> - <div class="adef-list"> - <p><em>Attribute definitions:</em></p> - <dl> - <dt id="XMLLangAttribute"><span - class="adef">xml:lang</span> = "<span - class="attr-value">languageID</span>"</dt> - <dd>Standard XML attribute to specify the language (e.g., - English) used in the contents and attribute values of - particular elements. Refer to the <a href="http://www.w3.org/TR/2008/REC-xml-20081126/"><cite>Extensible Markup - Language (XML) 1.0</cite></a> Recommendation [<a href="refs.html#ref-XML10">XML10</a>].<br /> - <span class="anim-target"><a - href="animate.html#Animatable">Animatable</a>: - no.</span></dd> - <dt id="XMLSpaceAttribute"> <span - class="adef">xml:space</span> = "<span - class="attr-value">{default | preserve}</span>"</dt> - <dd>Deprecated XML attribute to specify whether white space - is preserved in character data. The only possible values - are <span class='attr-value'>'default'</span> and <span class='attr-value'>'preserve'</span>. Refer to the - <a href="http://www.w3.org/TR/2008/REC-xml-20081126/"><cite>Extensible Markup Language (XML) 1.0</cite></a> - Recommendation [<a href="refs.html#ref-XML10">XML10</a>] and to the - discussion <a href="text.html#WhiteSpace">white space - handling</a> in SVG.<br /> - New content should use the <a>'white-space'</a> property instead.<br /> - <span class="anim-target"><a - href="animate.html#Animatable">Animatable</a>: - no.</span></dd> - </dl> - </div> +<dl class="attrdef-list"> + <dt> + <table class="propdef attrdef"> + <tr> + <th>Name</th> + <th>Value</th> + <th>Lacuna value</th> + <th>Animatable</th> + </tr> + <tr> + <td><dfn id="XMLLangAttribute">xml:lang</dfn></td> + <td><em>languageID</em></td> + <td>(none)</td> + <td>no</td> + </tr> + </table> + </dt> + <dd> + <p class="issue">Need a grammar for <em>languageID</em>.</p> + <p>Standard XML attribute to specify the language (e.g., + English) used in the contents and attribute values of + particular elements. Refer to the <a href="http://www.w3.org/TR/2008/REC-xml-20081126/"><cite>Extensible Markup + Language (XML) 1.0</cite></a> Recommendation [<a href="refs.html#ref-XML10">XML10</a>].</p> + </dd> + <dt> + <table class="propdef attrdef"> + <tr> + <th>Name</th> + <th>Value</th> + <th>Lacuna value</th> + <th>Animatable</th> + </tr> + <tr> + <td><dfn id="XMLSpaceAttribute">xml:space</dfn></td> + <td>default | preserve</td> + <td>default</td> + <td>no</td> + </tr> + </table> + </dt> + <dd> + <p>Deprecated XML attribute to specify whether white space + is preserved in character data. The only possible values + are <span class='attr-value'>'default'</span> and <span class='attr-value'>'preserve'</span>. Refer to the + <a href="http://www.w3.org/TR/2008/REC-xml-20081126/"><cite>Extensible Markup Language (XML) 1.0</cite></a> + Recommendation [<a href="refs.html#ref-XML10">XML10</a>] and to the + discussion <a href="text.html#WhiteSpace">white space + handling</a> in SVG.</p> + <p>New content should use the <a>'white-space'</a> property instead.</p> + </dd> +</dl> <h2 id="DOMInterfaces">DOM interfaces</h2> <h3 id="InterfaceSVGDocument">Interface SVGDocument</h3> <p>When an <a>'svg'</a> element is embedded inline as diff --git a/master/style/default_svg.css b/master/style/default_svg.css --- a/master/style/default_svg.css +++ b/master/style/default_svg.css @@ -347,8 +347,34 @@ table.propdef.attrdef td:first-child { w table.propdef.attrdef th:first-child + th, table.propdef.attrdef td:first-child + td { width: auto } table.propdef.attrdef th:first-child + th + th, table.propdef.attrdef td:first-child + td + td { width: 6em } table.propdef.attrdef th:first-child + th + th + th, table.propdef.attrdef td:first-child + td + td + td { width: 6em; padding-right: 0 !important } + +/* HTML5-like switch statements. */ +dl.switch > dd > ol.only { + margin-left: 0; +} +dl.switch > dd > ol.algorithm { + margin-left: -2em; +} +dl.switch { + padding-left: 2em; +} +dl.switch > dt { + text-indent: -1.5em; + margin-top: 1em; +} +dl.switch > dt + dt { + margin-top: 0; +} +dl.switch > dt:before { + content: '\21AA'; + padding: 0 0.5em 0 0; + display: inline-block; + width: 1em; + text-align: right; + line-height: 0.5em; +}
Received on Saturday, 15 September 2012 21:21:31 UTC