Skip to content

Commit 2186636

Browse files
authored
Defer hatch gradients to future version of SVG
2 parents 3221550 + 961eb92 commit 2186636

8 files changed

Lines changed: 15 additions & 658 deletions

File tree

master/changes.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,7 @@ <h3 id="pservers">Paint Servers chapter (owner: BogdanBrinza)</h3>
670670
and meshpatch elements. (Renamed 'meshGradient' to 'mesh', 'meshRow' to 'meshrow',
671671
and 'meshPatch' to 'meshpatch'.)</li>
672672

673-
<li>Added a section for hatches, defining the <a>'hatch'</a> and <a>'hatchpath'</a> elements.
673+
<li>Added a section for hatches, defining the hatch and hatchpath elements.
674674
(Renamed 'hatchPath' to 'hatchpath'.)</li>
675675

676676
<li>Renamed <span class="attr-name">'gradientTransform'</span> on the <a>'mesh'</a> element
@@ -690,6 +690,7 @@ <h3 id="pservers">Paint Servers chapter (owner: BogdanBrinza)</h3>
690690
<div class='changed-since-cr1'>
691691
<ul>
692692
<li><a>SVGGradientElement</a> and <a>SVGPatternElement</a> no longer implement <a>SVGUnitTypes</a>. <a href="https://github.com/w3c/svgwg/issues/291">Github #291</a>.</li>
693+
<li>Deferred hatch and hatchpath elements to a future version of SVG.</li>
693694
<li>Deferred mesh gradients, including mesh, meshrow, and meshpath elements to a future version of SVG.</li>
694695
</ul>
695696
</div>

master/definitions.xml

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -123,36 +123,6 @@
123123
attributecategories='aria, core, conditional processing, global event, document element event, graphical event, presentation, style'
124124
interfaces='SVGUnknownElement'/>
125125

126-
<element
127-
name='hatch'
128-
href='pservers.html#HatchElement'
129-
contentmodel='anyof'
130-
elementcategories='animation, descriptive'
131-
elements='hatchpath, script, style'
132-
attributecategories='core, global event, document element event, presentation, style'
133-
interfaces='SVGHatchElement'>
134-
<attribute name='x' href='pservers.html#HatchElementXAttribute' animatable='yes'/>
135-
<attribute name='y' href='pservers.html#HatchElementYAttribute' animatable='yes'/>
136-
<attribute name='pitch' href='pservers.html#HatchElementPitchAttribute' animatable='yes'/>
137-
<attribute name='rotate' href='pservers.html#HatchElementRotateAttribute' animatable='yes'/>
138-
<attribute name='hatchUnits' href='pservers.html#HatchElementHatchUnitsAttribute' animatable='yes'/>
139-
<attribute name='hatchContentUnits' href='pservers.html#HatchElementHatchContentUnitsAttribute' animatable='yes'/>
140-
<attribute name='transform' href='pservers.html#HatchElementTransformAttribute' animatable='yes'/>
141-
<attribute name='href' href='pservers.html#HatchElementHrefAttribute' animatable='yes'/>
142-
</element>
143-
144-
<element
145-
name='hatchpath'
146-
href='pservers.html#HatchpathElement'
147-
contentmodel='anyof'
148-
elementcategories='animation, descriptive'
149-
elements='script, style'
150-
attributecategories='core, global event, document element event, presentation, style'
151-
interfaces='SVGHatchpathElement'>
152-
<attribute name='d' href='pservers.html#HatchpathElementDAttribute' animatable='yes'/>
153-
<attribute name='offset' href='pservers.html#HatchpathElementOffsetAttribute' animatable='yes'/>
154-
</element>
155-
156126
<element
157127
name='iframe'
158128
href='embedded.html#HTMLElements'
@@ -495,14 +465,14 @@
495465
<elementcategory name='descriptive' href='struct.html#TermDescriptiveElement' elements='desc, title, metadata'/>
496466
<elementcategory name='gradient' href='pservers.html#TermGradientElement' elements='linearGradient, radialGradient'/>
497467
<elementcategory name='graphics' href='struct.html#TermGraphicsElement' elements='path, text, tspan, textPath, rect, circle, ellipse, line, polyline, polygon, image, foreignObject, iframe, video, audio, canvas'/>
498-
<elementcategory name='graphics referencing' href='struct.html#TermGraphicsReferencingElement' elements='use, image, iframe, video, audio'/>
499-
<elementcategory name='paint server' href='painting.html#TermPaintServerElement' elements='solidcolor, linearGradient, radialGradient, pattern, hatch'/>
468+
<elementcategory name='graphics referencing' href='struct.html#TermGraphicsReferencingElement' elements='use, image, mesh, iframe, video, audio'/>
469+
<elementcategory name='paint server' href='painting.html#TermPaintServerElement' elements='solidcolor, linearGradient, radialGradient, pattern'/>
500470
<elementcategory name='shape' href='shapes.html#TermShapeElement' elements='circle, ellipse, line, path, polygon, polyline, rect'/>
501471
<elementcategory name='structural' href='struct.html#TermStructuralElement' elements='defs, g, svg, symbol, use'/>
502472
<elementcategory name='structurally external' href='struct.html#TermStructurallyExternalElement' elements='script, image, use, iframe, video, audio, foreignObject'/>
503473
<elementcategory name='text content' href='text.html#TermTextContentElement' elements='text, tspan, textPath'/>
504474
<elementcategory name='text content child' href='text.html#TermTextContentChildElement' elements='tspan, textPath'/>
505-
<elementcategory name='never-rendered' href='render.html#TermNeverRenderedElement' elements='defs, desc, title, metadata, clipPath, mask, marker, pattern, hatch, linearGradient, radialGradient, script, style'/>
475+
<elementcategory name='never-rendered' href='render.html#TermNeverRenderedElement' elements='defs, desc, title, metadata, clipPath, mask, marker, pattern, linearGradient, radialGradient, script, style'/>
506476
<elementcategory name='renderable' href='render.html#TermRenderableElement' elements='svg, g, a, switch, path, text, rect, circle, ellipse, line, polyline, polygon, image, use, foreignObject, iframe, video, audio, canvas, tspan, textPath, unknown'/>
507477

508478
<!-- ... attributes common to multiple elements ........................ -->
@@ -924,8 +894,6 @@
924894
<interface name='SVGRadialGradientElement' href='pservers.html#InterfaceSVGRadialGradientElement'/>
925895
<interface name='SVGStopElement' href='pservers.html#InterfaceSVGStopElement'/>
926896
<interface name='SVGPatternElement' href='pservers.html#InterfaceSVGPatternElement'/>
927-
<interface name='SVGHatchElement' href='pservers.html#InterfaceSVGHatchElement'/>
928-
<interface name='SVGHatchpathElement' href='pservers.html#InterfaceSVGHatchpathElement'/>
929897
<interface name='SVGCursorElement' href='interact.html#InterfaceSVGCursorElement'/>
930898
<interface name='SVGAElement' href='linking.html#InterfaceSVGAElement'/>
931899
<interface name='SVGViewElement' href='linking.html#InterfaceSVGViewElement'/>

master/linking.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ <h3 id="XLinkRefAttrs">Deprecated XLink URL reference attributes</h3>
259259
<th>Animatable</th>
260260
</tr>
261261
<tr>
262-
<td><dfn id="XLinkHrefAttribute" data-dfn-type="element-attr" data-dfn-for="a, cursor, hatch, image, linearGradient, pattern, radialGradient, script, textPath, use" data-dfn-export="">xlink:href</dfn></td>
262+
<td><dfn id="XLinkHrefAttribute" data-dfn-type="element-attr" data-dfn-for="a, cursor, image, linearGradient, pattern, radialGradient, script, textPath, use" data-dfn-export="">xlink:href</dfn></td>
263263
<td>URL <a href="types.html#attribute-url" class="syntax">[URL]</a></td>
264264
<td>(none)</td>
265265
<td>(see below)</td>
@@ -295,7 +295,7 @@ <h3 id="XLinkRefAttrs">Deprecated XLink URL reference attributes</h3>
295295
<th>Animatable</th>
296296
</tr>
297297
<tr>
298-
<td><dfn id="XLinkTitleAttribute" data-dfn-type="element-attr" data-dfn-for="a, cursor, hatch, image, linearGradient, pattern, radialGradient, script, textPath, use" data-dfn-export="">xlink:title</dfn></td>
298+
<td><dfn id="XLinkTitleAttribute" data-dfn-type="element-attr" data-dfn-for="a, cursor, image, linearGradient, pattern, radialGradient, script, textPath, use" data-dfn-export="">xlink:title</dfn></td>
299299
<td>&lt;anything&gt;</td>
300300
<td>(none)</td>
301301
<td>no</td>
@@ -661,7 +661,6 @@ <h4 id="processingURL-validity">Valid URL targets</h4>
661661
<ul>
662662
<li>the <a>'a'</a> element can reference any local or non-local resource</li>
663663
<li>the <a>'cursor element'</a> element must reference a document that can be processed as an image</li>
664-
<li>the <a>'hatch'</a> element must reference another <a>'hatch'</a> element</li>
665664
<li>the <a>'image'</a> element must reference a document that can be processed as an image</li>
666665
<li>the <a>'linearGradient'</a> element must reference a different <a>'linearGradient'</a> or <a>'radialGradient'</a> element</li>
667666
<li>the <a>'pattern'</a> element must reference another <a>'pattern'</a> element</li>

master/painting.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ <h3 id="Definitions">Definitions</h3>
4747
<li>a single color,</li>
4848
<li>a gradient (linear or radial)</li>
4949
<li>a pattern (vector or raster, possibly tiled),</li>
50-
<li>a hatch,</li>
5150
<li>other images as specified using CSS Image Value syntax [<a href="refs.html#ref-css3-images">css3-images</a>].</li>
5251
</ul>
5352

@@ -133,9 +132,8 @@ <h2 id="SpecifyingPaint">Specifying paint</h2>
133132
color values on to the canvas and is composed of one or more paint layers.
134133
Four types of paints within these paint layers are supported:
135134
<a href="https://www.w3.org/TR/css3-values/#colors">solid colors</a>,
136-
<a href="pservers.html#Gradients">gradients</a>,
137-
<a href="pservers.html#Patterns">patterns</a>,
138-
and <a href="pservers.html#Hatches">hatches</a>.</p>
135+
<a href="pservers.html#Gradients">gradients</a>, and
136+
<a href="pservers.html#Patterns">patterns</a>.</p>
139137

140138
<p>A <a>&lt;paint&gt;</a> value is defined as follows:</p>
141139
<p class="definition">

0 commit comments

Comments
 (0)