|
59 | 59 | </p> |
60 | 60 | <h1 class="p-name no-ref" id=title>CSS Masking Module Level 1</h1> |
61 | 61 | <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> |
63 | 63 | <div data-fill-with=spec-metadata><dl> |
64 | 64 | <dt>This version: |
65 | 65 | <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= |
386 | 386 | <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> |
387 | 387 |
|
388 | 388 | <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()><polygon()></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> |
390 | 390 | <pre><code class=css>clip-path: polygon(15px 99px, 30px 87px, 65px 99px, 85px 55px, |
391 | 391 | 122px 57px, 184px 73px, 198px 105px, 199px 150px, |
392 | 392 | 145px 159px, 155px 139px, 126px 120px, 112px 138px, |
393 | 393 | 80px 128px, 39px 126px, 24px 104px);</code></pre> |
394 | 394 | </div> |
395 | 395 |
|
396 | 396 | <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> |
398 | 398 | <pre><code class=css>clip-path: url("#clip1");</code></pre> |
399 | 399 |
|
400 | | - <pre><code class=html><svg> |
| 400 | + <pre><code class=html> |
401 | 401 | <clipPath id="clip1"> |
402 | | - <path d="15,99 30,87 65,99 85,55 122,57 184,73 198,105 |
| 402 | + <polygon points="15,99 30,87 65,99 85,55 122,57 184,73 198,105 |
403 | 403 | 199,150 145,159 155,139 126,120 112,138 80,128 39,126 |
404 | 404 | 24,104"/> |
405 | | -</clipPath> |
406 | | -</svg></code></pre> |
| 405 | +</clipPath></code></pre> |
407 | 406 | </div> |
408 | 407 |
|
409 | 408 | <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> |
|
0 commit comments