- From: SVG Working Group repository <cam+svgwgrepo@mcc.id.au>
- Date: Mon, 03 Feb 2014 20:41:38 -0800
- To: public-svg-wg@w3.org
details: https://svgwg.org/hg/svg2/rev/6140ba8d577c branches: changeset: 602:6140ba8d577c user: Cameron McCormack <cam@mcc.id.au> date: Tue Feb 04 15:39:36 2014 +1100 description: Styling some algorithms in painting.html. diffstat: master/painting.html | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diffs (79 lines): diff --git a/master/painting.html b/master/painting.html --- a/master/painting.html +++ b/master/painting.html @@ -1145,17 +1145,17 @@ path length space.</p> <p>The following algorithm describes what the shape of a <a>'path'</a> or <a>basic shape</a>'s stroke is, taking into account the stroking properties above:</p> <p class="issue">This should include text elements too, but should we keep stroke dashing on text?</p> -<ol> +<ol class="algorithm"> <li>Let <var>shape</var> be an empty shape.</li> <li>Let <var>path</var> be the <a>equivalent path</a> of the element.</li> <li>For each subpath of <var>path</var>: <ol> <li>Let <var>positions</var> be the <a>dash positions</a> for the subpath.</li> <li>For each pair <<var>start</var>, <var>end</var>> in <var>positions</var>: <ol> <li>Let <var>dash</var> be the shape that includes, for all distances @@ -1198,17 +1198,17 @@ keep stroke dashing on text?</p> </ol> <p>The <dfn id="TermDashPositions">dash positions</dfn> for a given subpath of the <a>equivalent path</a> of a <a>'path'</a> or <a>basic shape</a> is a sequence of pairs of values, which represent the starting and ending distance along the subpath for each of the dashes that form the subpath's stroke. It is determined as follows:</p> -<ol> +<ol class="algorithm"> <li>Let <var>pathlength</var> be the length of the subpath.</li> <li>Let <var>dashes</var> be the list of values of <a>'stroke-dasharray'</a> on the element, converted to user units, repeated if necessary so that it has an even number of elements; if the property has the value <span class="prop-value">none</span>, then the list has a single value 0.</li> <li>Let <var>count</var> be the number of values in <var>dashes</var>.</li> @@ -1253,17 +1253,17 @@ determined as follows:</p> </li> <li>Return <var>positions</var>.</li> </ol> <p>The starting and ending <dfn id="TermCapShape">cap shapes</dfn> at a given <var>position</var> along a subpath are determined as follows:</p> -<ol> +<ol class="algorithm"> <li>If <a>'stroke-linecap'</a> is <span class="prop-value">butt</span>, then return an empty shape.</li> <li>Otherwise, if <a>'stroke-linecap'</a> is <span class="prop-value">round</span>, then: <ol> <li>If this is a starting cap, then return a semicircle of radius <a>'stroke-width'</a> positioned such that: <ul> <li>Its straight edge is parallel to the line perpendicular to the subpath at distance <var>position</var> along it.</li> <li>The midpoint of its straight edge is at the point that is along the subpath at distance <var>position</var>.</li> @@ -1309,17 +1309,17 @@ determined as follows:</p> indicate the perpendicular to the tangent at the path endpoints and the pink areas are the caps. The bottom row shows the stroke without the perpendicular and cap highlighting.</p> </div> <p>The <dfn id="TermLineJoinShape">line join shape</dfn> for a given segment of a subpath is determined as follows:</p> -<ol> +<ol class="algorithm"> <li>Let <var>P</var> be the point at the end of the segment.</li> <li>Let <var>A</var> be the line parallel to the tangent at the end of the segment.</li> <li>Let <var>B</var> be the line parallel to the tangent at the start of the following segment.</li> <li>If <var>A</var> and <var>B</var> are the same line, then return an empty shape.</li> <li>Let <var>A<sub>left</sub></var> and <var>A<sub>right</sub></var> be lines parallel to <var>A</var> at a distance of <a>'stroke-width'</a> / 2 to the
Received on Tuesday, 4 February 2014 04:42:02 UTC