Skip to content

Commit fdd5a16

Browse files
estellewbamberg
andauthored
New pages: SVGFESpecularLightingElement (#37432)
* New pages: SVGFESpecularLightingElement * Update files/en-us/web/api/svgfespecularlightingelement/result/index.md --------- Co-authored-by: wbamberg <[email protected]>
1 parent 5af8d52 commit fdd5a16

File tree

5 files changed

+198
-0
lines changed

5 files changed

+198
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: "SVGFESpecularLightingElement: height property"
3+
short-title: height
4+
slug: Web/API/SVGFESpecularLightingElement/height
5+
page-type: web-api-instance-property
6+
browser-compat: api.SVGFESpecularLightingElement.height
7+
---
8+
9+
{{APIRef("SVG")}}
10+
11+
The **`height`** read-only property of the {{domxref("SVGFESpecularLightingElement")}} interface describes the vertical size of an SVG filter primitive as a {{domxref("SVGAnimatedLength")}}.
12+
13+
It reflects the {{SVGAttr("height")}} attribute of the {{SVGElement("feSpecularLighting")}} element, which lights a source graphic using the alpha channel as a bump map. The attribute is a [`<length>`](/en-US/docs/Web/SVG/Content_type#length) or a [`<percentage>`](/en-US/docs/Web/SVG/Content_type#percentage) relative to the height of the filter region. The default value is `100%`. The property value is a length in user coordinate system units.
14+
15+
## Value
16+
17+
An {{domxref("SVGAnimatedLength")}}.
18+
19+
## Example
20+
21+
```js
22+
const feSpecularLighting = document.querySelector("feSpecularLighting");
23+
const verticalSize = feSpecularLighting.height;
24+
console.log(verticalSize.baseVal.value); // the `height` value
25+
```
26+
27+
## Specifications
28+
29+
{{Specifications}}
30+
31+
## Browser compatibility
32+
33+
{{Compat}}
34+
35+
## See also
36+
37+
- {{domxref("SVGFESpecularLightingElement.width")}}
38+
- {{domxref("SVGFEDiffuseLightingElement")}}
39+
- CSS {{cssxref("lighting-color")}} property
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: "SVGFESpecularLightingElement: result property"
3+
short-title: result
4+
slug: Web/API/SVGFESpecularLightingElement/result
5+
page-type: web-api-instance-property
6+
browser-compat: api.SVGFESpecularLightingElement.result
7+
---
8+
9+
{{APIRef("SVG")}}
10+
11+
The **`result`** read-only property of the {{domxref("SVGFESpecularLightingElement")}} interface describes the assigned name of an SVG filter primitive as a {{domxref("SVGAnimatedString")}}.
12+
13+
It reflects the {{SVGAttr("result")}} attribute of the {{SVGElement("feSpecularLighting")}} element, which lights a source graphic using the alpha channel as a bump map. The attribute value is a {{cssxref("custom-ident")}}. If supplied, then graphics that result from processing this filter primitive can be referenced by an {{SVGAttr("in")}} attribute on a subsequent filter primitive within the same {{SVGElement("filter")}} element.
14+
15+
If no `result` attribute is defined, the filter's `result.baseVal` and `result.animVal` are empty strings, and the output of the `<feSpecularLighting>` filter will only be available for re-use as the implicit input into the next filter primitive if that filter primitive provides no value for its `in` attribute.
16+
17+
## Value
18+
19+
An {{domxref("SVGAnimatedString")}}.
20+
21+
## Example
22+
23+
```js
24+
const feSpecularLightingElement = document.querySelector("feSpecularLighting");
25+
const filterName = feSpecularLightingElement.result;
26+
console.log(filterName.baseVal); // the filter's assigned name
27+
```
28+
29+
## Specifications
30+
31+
{{Specifications}}
32+
33+
## Browser compatibility
34+
35+
{{Compat}}
36+
37+
## See also
38+
39+
- {{domxref("SVGFESpecularLightingElement.in1")}}
40+
- {{cssxref("custom-ident")}} data type
41+
- {{domxref("SVGFEDiffuseLightingElement")}}
42+
- CSS {{cssxref("lighting-color")}} property
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: "SVGFESpecularLightingElement: width property"
3+
short-title: width
4+
slug: Web/API/SVGFESpecularLightingElement/width
5+
page-type: web-api-instance-property
6+
browser-compat: api.SVGFESpecularLightingElement.width
7+
---
8+
9+
{{APIRef("SVG")}}
10+
11+
The **`width`** read-only property of the {{domxref("SVGFESpecularLightingElement")}} interface describes the horizontal size of an SVG filter primitive as a {{domxref("SVGAnimatedLength")}}.
12+
13+
It reflects the {{SVGAttr("width")}} attribute of the {{SVGElement("feSpecularLighting")}} element, which lights a source graphic using the alpha channel as a bump map. The attribute is a [`<length>`](/en-US/docs/Web/SVG/Content_type#length) or a [`<percentage>`](/en-US/docs/Web/SVG/Content_type#percentage) relative to the width of the filter region. The default value is `100%`. The property value is a length in user coordinate system units.
14+
15+
## Value
16+
17+
An {{domxref("SVGAnimatedLength")}}.
18+
19+
## Example
20+
21+
```js
22+
const feSpecularLighting = document.querySelector("feSpecularLighting");
23+
const horizontalSize = feSpecularLighting.width;
24+
console.log(horizontalSize.baseVal.value); // the `width` value
25+
```
26+
27+
## Specifications
28+
29+
{{Specifications}}
30+
31+
## Browser compatibility
32+
33+
{{Compat}}
34+
35+
## See also
36+
37+
- {{domxref("SVGFESpecularLightingElement.height")}}
38+
- {{domxref("SVGFEDiffuseLightingElement")}}
39+
- CSS {{cssxref("lighting-color")}} property
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: "SVGFESpecularLightingElement: x property"
3+
short-title: x
4+
slug: Web/API/SVGFESpecularLightingElement/x
5+
page-type: web-api-instance-property
6+
browser-compat: api.SVGFESpecularLightingElement.x
7+
---
8+
9+
{{APIRef("SVG")}}
10+
11+
The **`x`** read-only property of the {{domxref("SVGFESpecularLightingElement")}} interface describes the horizontal coordinate of the position of an SVG filter primitive as a {{domxref("SVGAnimatedLength")}}.
12+
13+
It reflects the {{SVGAttr("x")}} attribute of the {{SVGElement("feSpecularLighting")}} element, which lights a source graphic using the alpha channel as a bump map. The attribute is a [`<length>`](/en-US/docs/Web/SVG/Content_type#length) or [`<percentage>`](/en-US/docs/Web/SVG/Content_type#percentage). The `<coordinate>` is a length in the user coordinate system that is the given distance from the origin of the user coordinate system along the x-axis. If the `x` attribute is a percent value, the property value is relative to the width of the filter region in user coordinate system units. The default value is `0`.
14+
15+
## Value
16+
17+
An {{domxref("SVGAnimatedLength")}}.
18+
19+
## Example
20+
21+
```js
22+
const feSpecularLighting = document.querySelector("feSpecularLighting");
23+
const leftPosition = feSpecularLighting.x;
24+
console.log(leftPosition.baseVal.value); // the `x` value
25+
```
26+
27+
## Specifications
28+
29+
{{Specifications}}
30+
31+
## Browser compatibility
32+
33+
{{Compat}}
34+
35+
## See also
36+
37+
- {{domxref("SVGFESpecularLightingElement.y")}}
38+
- {{domxref("SVGFEDiffuseLightingElement")}}
39+
- CSS {{cssxref("lighting-color")}} property
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
title: "SVGFESpecularLightingElement: y property"
3+
short-title: "y"
4+
slug: Web/API/SVGFESpecularLightingElement/y
5+
page-type: web-api-instance-property
6+
browser-compat: api.SVGFESpecularLightingElement.y
7+
---
8+
9+
{{APIRef("SVG")}}
10+
11+
The **`y`** read-only property of the {{domxref("SVGFESpecularLightingElement")}} interface describes the vertical coordinate of the position of an SVG filter primitive as a {{domxref("SVGAnimatedLength")}}.
12+
13+
It reflects the {{SVGAttr("y")}} attribute of the {{SVGElement("feSpecularLighting")}} element, which lights a source graphic using the alpha channel as a bump map. The attribute is a [`<length>`](/en-US/docs/Web/SVG/Content_type#length) or [`<percentage>`](/en-US/docs/Web/SVG/Content_type#percentage). The `<coordinate>` is a length in the user coordinate system that is the given distance from the origin of the filter along the y-axis. If the `y` attribute is a percent value, the property value is a relative to the height of the filter region in user coordinate system units. The default value is `0`.
14+
15+
## Value
16+
17+
An {{domxref("SVGAnimatedLength")}}.
18+
19+
## Example
20+
21+
```js
22+
const feSpecularLighting = document.querySelector("feSpecularLighting");
23+
const topPosition = feSpecularLighting.y;
24+
console.log(topPosition.baseVal.value); // the `y` value
25+
```
26+
27+
## Specifications
28+
29+
{{Specifications}}
30+
31+
## Browser compatibility
32+
33+
{{Compat}}
34+
35+
## See also
36+
37+
- {{domxref("SVGFESpecularLightingElement.x")}}
38+
- CSS {{cssxref("blend-mode")}} data type
39+
- CSS {{cssxref("mix-blend-mode")}} property

0 commit comments

Comments
 (0)