Skip to content

Commit 987e080

Browse files
alkorlossvgeesus
authored andcommitted
[filter-effects] Fix code example
1 parent fa3832a commit 987e080

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

filter-effects/Overview.bs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -723,17 +723,17 @@ If a <a element>filter</a> element has no filter primitive tree then the element
723723

724724
<div class=example>
725725
An example of multiple filter primitive trees:
726-
<pre><code highlight=svg>
727-
&lt;filter id="filter">
728-
&lt-- The first filter primitive tree. Ignored for filter process. -->
729-
&lt;feColorMatrix type="hueRotate" values="45"/>
730-
&lt;feOffset dx="10" dy="10"/>
731-
&lt;feGaussianBlur stdDeviation="3"/>
732-
&lt-- The primary filter primitive tree. -->
733-
&lt;feFlood flood-color="green" result="flood"/>
734-
&lt;feComposite operator="in" in="SourceAlpha" in2="flood"/>
735-
&lt;/filter>
736-
</code></pre>
726+
<xmp class=lang-markup>
727+
<filter id="filter">
728+
<!-- The first filter primitive tree. Ignored for filter process. -->
729+
<feColorMatrix type="hueRotate" values="45"/>
730+
<feOffset dx="10" dy="10"/>
731+
<feGaussianBlur stdDeviation="3"/>
732+
<!-- The primary filter primitive tree. -->
733+
<feFlood flood-color="green" result="flood"/>
734+
<feComposite operator="in" in="SourceAlpha" in2="flood"/>
735+
</filter>
736+
</xmp>
737737

738738
The above filter has 2 filter primitive trees with the filter primitives:
739739
1. <a element>feColorMatrix</a>, <a element>feOffset</a> and <a element>feGaussianBlur</a> (with <a element>feGaussianBlur</a> being the root filter primitive of the tree) as well as

0 commit comments

Comments
 (0)