Skip to content

Commit 836ecd1

Browse files
dirkschulzesvgeesus
authored andcommitted
Correct mistakes in informative examples 4 and 5
1 parent 3b45bde commit 836ecd1

2 files changed

Lines changed: 11 additions & 13 deletions

File tree

css-masking-1/Overview.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
</p>
6060
<h1 class="p-name no-ref" id=title>CSS Masking Module Level 1</h1>
6161
<h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft,
62-
<span class=dt-updated><span class=value-title title=20140626>26 June 2014</span></span></span></h2>
62+
<span class=dt-updated><span class=value-title title=20140710>10 July 2014</span></span></span></h2>
6363
<div data-fill-with=spec-metadata><dl>
6464
<dt>This version:
6565
<dd><a class=u-url href=http://dev.w3.org/fxtf/css-masking-1/>http://dev.w3.org/fxtf/css-masking-1/</a>
@@ -386,24 +386,23 @@ <h3 class="heading settled heading" data-level=5.1 id=the-clip-path><span class=
386386
<p>If the URI reference is not valid (e.g it points to an object that doesn’t exist or the object is not a <a data-link-type=element href=#elementdef-clippath title=clippath>clipPath</a> element), no clipping is applied.</p>
387387

388388
<div class=example>
389-
<p></p>
389+
<p>This example demonstrates the use of the basic shape <a class="production css-code" data-link-type=function href=http://dev.w3.org/csswg/css-shapes-1/#funcdef-polygon title=polygon()>&lt;polygon()&gt;</a> as clipping path. Each space separated length pair represents one point of the polygon. The visualized clipping path can be seen in the <a href=#clipping>introduction</a>.</p>
390390
<pre><code class=css>clip-path: polygon(15px 99px, 30px 87px, 65px 99px, 85px 55px,
391391
122px 57px, 184px 73px, 198px 105px, 199px 150px,
392392
145px 159px, 155px 139px, 126px 120px, 112px 138px,
393393
80px 128px, 39px 126px, 24px 104px);</code></pre>
394394
</div>
395395

396396
<div class=example>
397-
<p></p>
397+
<p>In this example, the <a class=property data-link-type=propdesc href=#propdef-clip-path title=clip-path>clip-path</a> property references an SVG <a data-link-type=element href=#elementdef-clippath title=clippath>clipPath</a> element. Each comma separated length pair represents one point of the polygon. As for the previous example, the visualized clipping path can be seen in the <a href=#clipping>introduction</a>.</p>
398398
<pre><code class=css>clip-path: url("#clip1");</code></pre>
399399

400-
<pre><code class=html>&lt;svg&gt;
400+
<pre><code class=html>
401401
&lt;clipPath id="clip1"&gt;
402-
&lt;path d="15,99 30,87 65,99 85,55 122,57 184,73 198,105
402+
&lt;polygon points="15,99 30,87 65,99 85,55 122,57 184,73 198,105
403403
199,150 145,159 155,139 126,120 112,138 80,128 39,126
404404
24,104"/&gt;
405-
&lt;/clipPath&gt;
406-
&lt;/svg&gt;</code></pre>
405+
&lt;/clipPath&gt;</code></pre>
407406
</div>
408407

409408
<h2 class="heading settled heading" data-level=6 id=svg-clipping-paths><span class=secno>6 </span><span class=content>SVG Clipping Path Sources</span><a class=self-link href=#svg-clipping-paths></a></h2>

css-masking-1/Overview.src.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,24 +255,23 @@ <h3 id="the-clip-path">Clipping Shape: the 'clip-path' property</h3>
255255
If the URI reference is not valid (e.g it points to an object that doesn't exist or the object is not a <a element>clipPath</a> element), no clipping is applied.
256256

257257
<div class=example>
258-
<p></p>
258+
<p>This example demonstrates the use of the basic shape <<polygon()>> as clipping path. Each space separated length pair represents one point of the polygon. The visualized clipping path can be seen in the <a href="#clipping">introduction</a>.</p>
259259
<pre><code class=css>clip-path: polygon(15px 99px, 30px 87px, 65px 99px, 85px 55px,
260260
122px 57px, 184px 73px, 198px 105px, 199px 150px,
261261
145px 159px, 155px 139px, 126px 120px, 112px 138px,
262262
80px 128px, 39px 126px, 24px 104px);</code></pre>
263263
</div>
264264

265265
<div class=example>
266-
<p></p>
266+
<p>In this example, the 'clip-path' property references an SVG <a element>clipPath</a> element. Each comma separated length pair represents one point of the polygon. As for the previous example, the visualized clipping path can be seen in the <a href="#clipping">introduction</a>.</p>
267267
<pre><code class=css>clip-path: url("#clip1");</code></pre>
268268

269-
<pre><code class=html>&lt;svg>
269+
<pre><code class=html>
270270
&lt;clipPath id="clip1">
271-
&lt;path d="15,99 30,87 65,99 85,55 122,57 184,73 198,105
271+
&lt;polygon points="15,99 30,87 65,99 85,55 122,57 184,73 198,105
272272
199,150 145,159 155,139 126,120 112,138 80,128 39,126
273273
24,104"/>
274-
&lt;/clipPath>
275-
&lt;/svg></code></pre>
274+
&lt;/clipPath></code></pre>
276275
</div>
277276

278277
<h2 id="svg-clipping-paths">SVG Clipping Path Sources</h2>

0 commit comments

Comments
 (0)