Skip to content

Commit 332c437

Browse files
authored
Mention that SVG FE elements use linearRGB by default (#38068)
* Mention that SVG FE elements use linearRGB by default * Link color space
1 parent f1f6378 commit 332c437

File tree

16 files changed

+32
-0
lines changed

16 files changed

+32
-0
lines changed

files/en-us/web/svg/element/feblend/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ browser-compat: svg.elements.feBlend
99

1010
The **`<feBlend>`** [SVG](/en-US/docs/Web/SVG) filter primitive composes two objects together ruled by a certain blending mode. This is similar to what is known from image editing software when blending two layers. The mode is defined by the {{SVGAttr("mode")}} attribute.
1111

12+
Like other filter primitives, it handles color components in the `linearRGB` {{glossary("color space")}} by default. You can use {{svgattr("color-interpolation-filters")}} to use `sRGB` instead.
13+
1214
## Usage context
1315

1416
{{svginfo}}

files/en-us/web/svg/element/fecolormatrix/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ A' | 0 0 0 1 0 |
6060

6161
In it, every new value is exactly 1 times its old value, with nothing else added. It is recommended to start manipulating the matrix from here.
6262

63+
Like other filter primitives, it handles color components in the `linearRGB` {{glossary("color space")}} by default. You can use {{svgattr("color-interpolation-filters")}} to use `sRGB` instead.
64+
6365
## Usage context
6466

6567
{{svginfo}}

files/en-us/web/svg/element/fecomponenttransfer/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ The **`<feComponentTransfer>`** [SVG](/en-US/docs/Web/SVG) filter primitive perf
1111

1212
The calculations are performed on non-premultiplied color values. The colors are modified by changing each channel (R, G, B, and A) to the result of what the children {{SVGElement("feFuncR")}}, {{SVGElement("feFuncB")}}, {{SVGElement("feFuncG")}}, and {{SVGElement("feFuncA")}} return. If more than one of the same element is provided, the last one specified is used, and if no element is supplied to modify one of the channels, the effect is the same is if an identity transformation had been given for that channel.
1313

14+
Like other filter primitives, it handles color components in the `linearRGB` {{glossary("color space")}} by default. You can use {{svgattr("color-interpolation-filters")}} to use `sRGB` instead.
15+
1416
## Usage context
1517

1618
{{svginfo}}

files/en-us/web/svg/element/fecomposite/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ browser-compat: svg.elements.feComposite
99

1010
The **`<feComposite>`** [SVG](/en-US/docs/Web/SVG) filter primitive performs the combination of two input images pixel-wise in image space using one of the Porter-Duff compositing operations: `over`, `in`, `atop`, `out`, `xor`, `lighter`, or `arithmetic`.
1111

12+
Like other filter primitives, it handles color components in the `linearRGB` {{glossary("color space")}} by default. You can use {{svgattr("color-interpolation-filters")}} to use `sRGB` instead.
13+
1214
The table below shows each of these operations using an image of the MDN logo composited with a red circle:
1315

1416
<table class="no-markdown">

files/en-us/web/svg/element/feconvolvematrix/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Let's focus on the color value at the second row and second column of the image
4747
3*200 + 2*220 + 1*240) / (9+8+7+6+5+4+3+2+1)
4848
```
4949

50+
Like other filter primitives, it handles color components in the `linearRGB` {{glossary("color space")}} by default. You can use {{svgattr("color-interpolation-filters")}} to use `sRGB` instead.
51+
5052
## Usage context
5153

5254
{{svginfo}}

files/en-us/web/svg/element/fediffuselighting/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ The **`<feDiffuseLighting>`** [SVG](/en-US/docs/Web/SVG) filter primitive lights
1111

1212
The light map produced by this filter primitive can be combined with a texture image using the multiply term of the `arithmetic` operator of the {{SVGElement("feComposite")}} filter primitive. Multiple light sources can be simulated by adding several of these light maps together before applying it to the texture image.
1313

14+
Like other filter primitives, it handles color components in the `linearRGB` {{glossary("color space")}} by default. You can use {{svgattr("color-interpolation-filters")}} to use `sRGB` instead.
15+
1416
## Usage context
1517

1618
{{svginfo}}

files/en-us/web/svg/element/fedisplacementmap/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ The formula for the transformation looks like this:
1515

1616
where `P(x,y)` is the input image, {{SVGAttr("in")}}, and `P'(x,y)` is the destination. `XC(x,y)` and `YC(x,y)` are the component values of the channel designated by {{SVGAttr("xChannelSelector")}} and {{SVGAttr("yChannelSelector")}}.
1717

18+
Like other filter primitives, it handles color components in the `linearRGB` {{glossary("color space")}} by default. You can use {{svgattr("color-interpolation-filters")}} to use `sRGB` instead.
19+
1820
## Usage context
1921

2022
{{svginfo}}

files/en-us/web/svg/element/fedistantlight/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ browser-compat: svg.elements.feDistantLight
99

1010
The **`<feDistantLight>`** [SVG](/en-US/docs/Web/SVG) filter primitive defines a distant light source that can be used within a lighting filter primitive: {{SVGElement("feDiffuseLighting")}} or {{SVGElement("feSpecularLighting")}}.
1111

12+
Like other filter primitives, it handles color components in the `linearRGB` {{glossary("color space")}} by default. You can use {{svgattr("color-interpolation-filters")}} to use `sRGB` instead.
13+
1214
## Usage context
1315

1416
{{svginfo}}

files/en-us/web/svg/element/fedropshadow/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ The **`<feDropShadow>`** [SVG](/en-US/docs/Web/SVG) filter primitive creates a d
1212
> [!NOTE]
1313
> The drop shadow color and opacity can be changed by using the {{SVGAttr('flood-color')}} and {{SVGAttr('flood-opacity')}} presentation attributes.
1414
15+
Like other filter primitives, it handles color components in the `linearRGB` {{glossary("color space")}} by default. You can use {{svgattr("color-interpolation-filters")}} to use `sRGB` instead.
16+
1517
## Example
1618

1719
```css hidden

files/en-us/web/svg/element/fegaussianblur/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ browser-compat: svg.elements.feGaussianBlur
99

1010
The **`<feGaussianBlur>`** [SVG](/en-US/docs/Web/SVG) filter primitive blurs the input image by the amount specified in {{SVGAttr("stdDeviation")}}, which defines the bell-curve.
1111

12+
Like other filter primitives, it handles color components in the `linearRGB` {{glossary("color space")}} by default. You can use {{svgattr("color-interpolation-filters")}} to use `sRGB` instead.
13+
1214
## Usage context
1315

1416
{{svginfo}}

0 commit comments

Comments
 (0)