You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -846,7 +850,7 @@ This filter blends two objects together using commonly used imaging software ble
846
850
847
851
Note: This attribute is an addition to the <a element>feBlend</a> element defintion in SVG 1.1. <a element-attr>no-composite</a>, when specified, is meant to avoid "double-compositing" effects when blending an input source with the backdrop of the filtered object (E.g. using the <a attr-value>BackgroundImage</a> filter primitive). For the majority of use cases authors will not need to specify the <a element-attr>no-composite</a> attribute.
@@ -947,7 +951,7 @@ The calculations are performed on non-premultiplied color values.
947
951
Animatable: yes.
948
952
: <dfn>values</dfn> = "<em>list of <<number>>s</em>"
949
953
::
950
-
The contents of <a element-attr for=feColorMatrix>values</a> depends on the value of attribute <a element-attr for=feColorMatrix>type</a></a>:
954
+
The contents of <a element-attr for=feColorMatrix>values</a> depends on the value of attribute <a element-attr for=feColorMatrix>type</a>:
951
955
* For <code>type="matrix"</code>, <a element-attr for=feColorMatrix>values</a> is a list of 20 matrix values (a00 a01 a02 a03 a04 a10 a11 ... a34), separated by whitespace and/or a comma. For example, the identity matrix could be expressed as:
952
956
<pre>
953
957
type="matrix"
@@ -1185,14 +1189,14 @@ The attributes below are the <dfn id="transfer-function-element-attributes">tran
1185
1189
1186
1190
If the attribute is not specified, then the effect is as if an empty list were provided.
1187
1191
1188
-
Animatable: yes.</p>
1192
+
Animatable: yes.
1189
1193
: <dfn>slope</dfn> = "<em><<number>></em>"
1190
1194
::
1191
1195
When <code>type="linear"</code>, the slope of the linear function.
1192
1196
1193
1197
The <a for=svg>initial value</a> for <a element-attr>slope</a> is ''1''.
1194
1198
1195
-
Animatable: yes.</p>
1199
+
Animatable: yes.
1196
1200
: <dfn>intercept</dfn> = "<em><<number>></em>"
1197
1201
::
1198
1202
When <code>type="linear"</code>, the intercept of the linear function.
@@ -1372,7 +1376,7 @@ For this filter primitive, the extent of the resulting image might grow as descr
1372
1376
1373
1377
The <a for=svg>initial value</a> for <a element-attr for=feComposite>operator</a> is <a attr-value>over</a>.
1374
1378
1375
-
Animatable: yes.</p>
1379
+
Animatable: yes.
1376
1380
: <dfn>k1</dfn> = "<<number>>"
1377
1381
::
1378
1382
Only applicable if <code>operator="arithmetic"</code>.
@@ -1386,7 +1390,7 @@ For this filter primitive, the extent of the resulting image might grow as descr
1386
1390
1387
1391
The <a for=svg>initial value</a> for <a element-attr>k2</a> is ''0''.
1388
1392
1389
-
Animatable: yes.</p>
1393
+
Animatable: yes.
1390
1394
: <dfn>k3</dfn> = "<<number>>"
1391
1395
::
1392
1396
Only applicable if <code>operator="arithmetic"</code>.
@@ -1604,9 +1608,9 @@ feConvolveMatrix applies a matrix convolution filter effect. A convolution combi
1604
1608
1605
1609
A matrix convolution is based on an n-by-m matrix (the convolution kernel) which describes how a given pixel value in the input image is combined with its neighboring pixel values to produce a resulting pixel value. Each result pixel is determined by applying the kernel matrix to the corresponding source pixel and its neighboring pixels. The basic convolution formula which is applied to each color value for a given pixel is:
where "orderX" and "orderY" represent the X and Y values for the <a element-attr>order</a> attribute, "targetX" represents the value of the <a element-attr>targetX</a> attribute, "targetY" represents the value of the <a element-attr>targetY</a> attribute, "kernelMatrix" represents the value of the <a element-attr>kernelMatrix</a> attribute, "divisor" represents the value of the <a element-attr>divisor</a> attribute, and "bias" represents the value of the <a element-attr>bias</a> attribute.
1612
1616
@@ -1671,10 +1675,10 @@ When the image must be resampled to match the coordinate system defined by <a el
1671
1675
Animatable: yes.
1672
1676
: <dfn>targetY</dfn> = "<<integer>>"
1673
1677
::
1674
-
Determines the positioning in Y of the convolution matrix relative to a given target pixel in the input image. The topmost row of the matrix is row number zero. The value must be such that: 0 <= targetY < orderY. By default, the convolution matrix is centered in Y over each pixel of the input image (i.e., targetY = floor ( orderY / 2 )).</p>
1678
+
Determines the positioning in Y of the convolution matrix relative to a given target pixel in the input image. The topmost row of the matrix is row number zero. The value must be such that: 0 <= targetY < orderY. By default, the convolution matrix is centered in Y over each pixel of the input image (i.e., targetY = floor ( orderY / 2 )).
Determines how to extend the input image as necessary with color values so that the matrix operations can be applied when the kernel is positioned at or near the edge of the input image.
1680
1684
@@ -2127,16 +2131,16 @@ The 'color-interpolation-filters' property only applies to the <a element-attr f
2127
2131
::
2128
2132
Indicates which channel from <a element-attr for=feDisplacementMap>in2</a> to use to displace the pixels in <a element-attr>in</a> along the x-axis.
2129
2133
2130
-
The <a for=svg>initial value</a> for <a element-attr>xChannelSelector</a> is ''A''.
2134
+
The <a for=svg>initial value</a> for <a element-attr>xChannelSelector</a> is ''xChannelSelector/A''.
2131
2135
2132
2136
Animatable: yes.
2133
2137
: <dfn>yChannelSelector</dfn> = "<em>R | G | B | A</em>"
2134
2138
::
2135
2139
Indicates which channel from <a element-attr for=feDisplacementMap>in2</a> to use to displace the pixels in <a element-attr>in</a> along the y-axis.
2136
2140
2137
-
The <a for=svg>initial value</a> for <a element-attr>yChannelSelector</a> is ''A''.
2141
+
The <a for=svg>initial value</a> for <a element-attr>yChannelSelector</a> is ''yChannelSelector/A''.
The second input image, which is used to displace the pixels in the image from attribute <a element-attr>in</a>. See defintion for <a element-attr>in</a> attribute.
@@ -2409,7 +2413,8 @@ A <a element-attr for=feImage>href</a> reference that is an empty image (zero wi
2409
2413
</dl>
2410
2414
2411
2415
<div class=example>
2412
-
The following example illustrates how images are placed relative to an object. From left to right:</p>
2416
+
The following example illustrates how images are placed relative to an object. From left to right:
2417
+
2413
2418
* The default placement of an image. Note that the image is centered in the <a>filter region</a> and has the maximum size that will fit in the region consistent with preserving the aspect ratio.
2414
2419
* The image stretched to fit the bounding box of an object.
2415
2420
* The image placed using user coordinates. Note that the image is first centered in a box the size of the <a>filter region</a> and has the maximum size that will fit in the box consistent with preserving the aspect ratio. This box is then shifted by the given <a element-attr for=filter-primitive>x</a> and <a element-attr for=filter-primitive>y</a> values relative to the viewport the object is in.
@@ -2667,21 +2672,21 @@ The <a element>feDiffuseLighting</a> and <a element>feSpecularLighting</a> filte
Exponent for specular term, larger is more "shiny".</p>
2689
+
Exponent for specular term, larger is more "shiny".
2685
2690
2686
2691
The <a for=svg>initial value</a> for <a element-attr for=feSpecularLighting>specularExponent</a> is ''1''.
2687
2692
@@ -2694,7 +2699,7 @@ The <a element>feDiffuseLighting</a> and <a element>feSpecularLighting</a> filte
2694
2699
2695
2700
If <a element-attr for=feSpecularLighting>kernelUnitLength</a> is not specified, the <code>dx</code> and <code>dy</code> values should represent very small deltas relative to a given <code>(x,y)</code> position, which might be implemented in some cases as one pixel in the intermediate image offscreen bitmap, which is a pixel-based coordinate system, and thus potentially not scalable. For some level of consistency across display media and user agents, it is necessary that a value be provided for <a element-attr for=feSpecularLighting>kernelUnitLength</a>.
2696
2701
2697
-
Animatable: yes.</p>
2702
+
Animatable: yes.
2698
2703
</dl>
2699
2704
2700
2705
The light source is defined by one of the child elements <a element>feDistantLight</a>, <a element>fePointLight</a> or <a element>feSpotLight</a>. The light color is specified by property 'lighting-color'.
If <code>stitchTiles="noStitch"</code>, no attempt is made to achieve smooth transitions at the border of tiles which contain a turbulence function. Sometimes the result will show clear discontinuities at the tile borders.
2968
2973
2969
-
If <code>stitchTiles="stitch"</code>, then the user agent will automatically adjust baseFrequency-x and baseFrequency-y values such that the <a element>feTurbulence</a> node's width and height (i.e., the width and height of the current subregion) contains an integral number of the Perlin tile width and height for the first octave. The baseFrequency will be adjusted up or down depending on which way has the smallest relative (not absolute) change as follows: Given the frequency, calculate <code>lowFreq=floor(width*frequency)/width</code> and <code>hiFreq=ceil(width*frequency)/width</code>. If frequency/lowFreq < hiFreq/frequency then use lowFreq, else use hiFreq. While generating turbulence values, generate lattice vectors as normal for Perlin Noise, except for those lattice points that lie on the right or bottom edges of the active area (the size of the resulting tile). In those cases, copy the lattice vector from the opposite edge of the active area.</p>
2974
+
If <code>stitchTiles="stitch"</code>, then the user agent will automatically adjust baseFrequency-x and baseFrequency-y values such that the <a element>feTurbulence</a> node's width and height (i.e., the width and height of the current subregion) contains an integral number of the Perlin tile width and height for the first octave. The baseFrequency will be adjusted up or down depending on which way has the smallest relative (not absolute) change as follows: Given the frequency, calculate <code>lowFreq=floor(width*frequency)/width</code> and <code>hiFreq=ceil(width*frequency)/width</code>. If frequency/lowFreq < hiFreq/frequency then use lowFreq, else use hiFreq. While generating turbulence values, generate lattice vectors as normal for Perlin Noise, except for those lattice points that lie on the right or bottom edges of the active area (the size of the resulting tile). In those cases, copy the lattice vector from the opposite edge of the active area.
2970
2975
2971
2976
The <a for=svg>initial value</a> for <a element-attr>stitchTiles</a> is ''noStitch''.
2972
2977
@@ -3091,7 +3096,7 @@ Note: The 'color-interpolation-filters' property just has an affect on filter op
3091
3096
3092
3097
Note: The 'color-interpolation-filters' has a different initial value than 'color-interpolation'. 'color-interpolation-filters' has an initial value of ''linearRGB'', where as 'color-interpolation' has an initial value of ''sRGB''. Thus, in the default case, filter effects operations occur in the linearRGB color space, whereas all other color interpolations occur by default in the sRGB color space.
3093
3098
3094
-
Note: The 'color-interpolation-filters' property has no affect on <span>Filter Functions</span>, which operate in the sRGB color space.
3099
+
Note: The 'color-interpolation-filters' property has no affect on <span>Filter Functions, which operate in the sRGB color space.
3095
3100
3096
3101
The 'color-interpolation-filters' property is a <a href="https://www.w3.org/TR/2011/REC-SVG11-20110816/intro.html#TermPresentationAttribute">presentation attribute</a> for SVG elements.
3097
3102
@@ -3237,7 +3242,7 @@ macros:
3237
3242
3238
3243
The <a for=svg>initial value</a> for <a element-attr for=feSpotLight>specularExponent</a> is ''1''.
3239
3244
3240
-
See section <a href="#feDiffuseLightingElement">Filter primitive <feDiffuseLighting></a> for how to use <a element-attr for=feSpotLight>specularExponent</a>.</p>
3245
+
See section <a href="#feDiffuseLightingElement">Filter primitive <feDiffuseLighting></a> for how to use <a element-attr for=feSpotLight>specularExponent</a>.
3241
3246
3242
3247
Note: <a element-attr for=feSpotLight>specularExponent</a> for <a element>feSpotLight</a> serves a different use case than <a element-attr for=feSpecularLighting>specularExponent</a> for <a element>feSpecularLighting</a>.
3243
3248
@@ -3533,11 +3538,11 @@ If any of the above rules are not followed, an attacker could infer information
3533
3538
A timing attack is a method of obtaining information about content that is otherwise protected, based on studying the amount of time it takes for an operation to occur. If, for example, red pixels took longer to draw than green pixels, one might be able to reconstruct a rough image of the element being rendered, without ever having access to the content of the element. Security studies show that timing differences on arithmetic operations can be caused by the hardware architecture or compiler [[ArTD]].
3534
3539
3535
3540
3536
-
<h2 id="AccessBackgroundImage" class="no-num">Appendix A: The deprecated 'enable-background' property</h2>
3541
+
<h2 id="AccessBackgroundImage" class="no-num">Appendix A: The deprecated <css>enable-background</css> property</h2>
3537
3542
3538
-
SVG 1.1 introduced the 'enable-background' property [[SVG11]]. The property defined the back drop under the <a>filter region</a> at the time that the <a element>filter</a> element was invoked. The concept defined by this property was identified to be incompatible with the model of stacking context in CSS at the time writing this specification. UAs can choose to implement the 'enable-background' property as defined in SVG 1.1 but will not be compatible to this specification or to CSS Compositing and Blending [[!COMPOSITING-1]].
3543
+
SVG 1.1 introduced the <a href="https://www.w3.org/TR/SVG11/filters.html#EnableBackgroundProperty">enable-background</a> property [[SVG11]]. The property defined the back drop under the <a>filter region</a> at the time that the <a element>filter</a> element was invoked. The concept defined by this property was identified to be incompatible with the model of stacking context in CSS at the time writing this specification. UAs can choose to implement the <a href="https://www.w3.org/TR/SVG11/filters.html#EnableBackgroundProperty">enable-background</a> property as defined in SVG 1.1 but will not be compatible to this specification or to CSS Compositing and Blending [[!COMPOSITING-1]].
3539
3544
3540
-
This specification does not support the 'enable-background' property. UAs must support the 'isolation' property instead [[!COMPOSITING-1]].
3545
+
This specification does not support the <a href="https://www.w3.org/TR/SVG11/filters.html#EnableBackgroundProperty">enable-background</a> property. UAs must support the 'isolation' property instead [[!COMPOSITING-1]].
3541
3546
3542
3547
3543
3548
<h2 id="DOMInterfaces" class="no-num">Appendix B: DOM interfaces</h2>
0 commit comments