Skip to content

Commit

Permalink
Change marker-pattern grammar to disallow consecutive lengths/percent…
Browse files Browse the repository at this point in the history
…ages.
  • Loading branch information
heycam committed Nov 21, 2014
1 parent 74cd7d5 commit 4d59c7a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
2 changes: 2 additions & 0 deletions master/definitions.xml
Expand Up @@ -1202,7 +1202,9 @@
<symbol name='list' href='types.html#DataTypeList'/>
<symbol name='list-of-family-names' href='types.html#DataTypeListOfFamilyNames'/>
<symbol name='list-of-strings' href='types.html#DataTypeListOfStrings'/>
<symbol name='marker-gap' href="painting.html#DataTypeMarkerGap"/>
<symbol name='marker-ref' href='painting.html#DataTypeMarkerRef'/>
<symbol name='marker-ref-group' href="painting.html#DataTypeMarkerRefGroup"/>
<symbol name="name" href="types.html#DataTypeName"/>
<symbol name='number' href='http://www.w3.org/TR/css3-values/#numbers'/>
<symbol name='number-optional-number' href='types.html#DataTypeNumberOptionalNumber'/>
Expand Down
24 changes: 17 additions & 7 deletions master/painting.html
Expand Up @@ -4457,7 +4457,7 @@ <h3 id="RepeatingMarkers">Repeating markers: the <span class="property">'marker-
</tr>
<tr>
<th>Value:</th>
<td>[ none | <a>&lt;length&gt;</a> | <a>&lt;percentage&gt;</a> | <a>&lt;marker-ref&gt;</a> ]+</td>
<td><a>&lt;marker-gap&gt;</a>? <a>&lt;marker-ref-group&gt;</a> [ <a>&lt;marker-gap&gt;</a> <a>&lt;marker-ref-group&gt;</a> ]* <a>&lt;marker-gap&gt;</a>?</td>
</tr>
<tr>
<th>Initial:</th>
Expand Down Expand Up @@ -4490,6 +4490,18 @@ <h3 id="RepeatingMarkers">Repeating markers: the <span class="property">'marker-
</tr>
</table>

<p>where:</p>

<div class="definition">
<dfn id="DataTypeMarkerGap">&lt;marker-gap&gt;</dfn> =
<div style="margin-left: 4em"><a>&lt;length&gt;</a> | <a>&lt;percentage&gt;</a></div>
</div>

<div class="definition">
<dfn id="DataTypeMarkerRefGroup">&lt;marker-ref-group&gt;</dfn> =
<div style="margin-left: 4em">none | <a>&lt;marker-ref&gt;</a>+</div>
</div>

<p class="note">New in SVG 2. Added to allow markers to be placed along a path
at positions unrelated to the segments used to form the path.</p>

Expand All @@ -4502,16 +4514,14 @@ <h3 id="RepeatingMarkers">Repeating markers: the <span class="property">'marker-
<dd>Indicates that no marker will be painted at the current
position along the path.</dd>

<dt><span class="prop-value"><a>&lt;length&gt;</a></span></dt>
<dt><span class="prop-value"><a>&lt;percentage&gt;</a></span></dt>
<dt><span class="prop-value"><a>&lt;marker-gap&gt;</a></span></dt>
<dd>Indicates the length of a gap in the repeated
pattern of markers.</dd>

<dt><span class="prop-value"><a>&lt;marker-ref&gt;</a></span></dt>
<dd>A reference to a <a>'marker element'</a> that will be
placed at the current position along the path.
If the reference is not valid, then no marker will be drawn at the
current position.</dd>
<dd>A reference to a <a>'marker element'</a> that will be placed at the
current position along the path. If the reference is not valid, then no
marker for that <a>&lt;marker-ref&gt;</a> will be painted.</dd>
</dl>

<p>If a value other than <span class="prop-value">none</span> is given,
Expand Down

0 comments on commit 4d59c7a

Please sign in to comment.