From fdf71e1e78097e049947a884e1189c062e7e6b63 Mon Sep 17 00:00:00 2001 From: estelle Date: Fri, 20 Dec 2024 15:51:27 -0800 Subject: [PATCH] New pages: SVGFEDropShadowElement --- .../svgfedropshadowelement/height/index.md | 42 +++++++++++++++++ .../svgfedropshadowelement/result/index.md | 45 +++++++++++++++++++ .../api/svgfedropshadowelement/width/index.md | 42 +++++++++++++++++ .../web/api/svgfedropshadowelement/x/index.md | 42 +++++++++++++++++ .../web/api/svgfedropshadowelement/y/index.md | 42 +++++++++++++++++ 5 files changed, 213 insertions(+) create mode 100644 files/en-us/web/api/svgfedropshadowelement/height/index.md create mode 100644 files/en-us/web/api/svgfedropshadowelement/result/index.md create mode 100644 files/en-us/web/api/svgfedropshadowelement/width/index.md create mode 100644 files/en-us/web/api/svgfedropshadowelement/x/index.md create mode 100644 files/en-us/web/api/svgfedropshadowelement/y/index.md diff --git a/files/en-us/web/api/svgfedropshadowelement/height/index.md b/files/en-us/web/api/svgfedropshadowelement/height/index.md new file mode 100644 index 000000000000000..d5f087cd8a336f4 --- /dev/null +++ b/files/en-us/web/api/svgfedropshadowelement/height/index.md @@ -0,0 +1,42 @@ +--- +title: "SVGFEDropShadowElement: height property" +short-title: height +slug: Web/API/SVGFEDropShadowElement/height +page-type: web-api-instance-property +browser-compat: api.SVGFEDropShadowElement.height +--- + +{{APIRef("SVG")}} + +The **`height`** read-only property of the {{domxref("SVGFEDropShadowElement")}} interface describes the vertical size of an SVG filter primitive as a {{domxref("SVGAnimatedLength")}}. + +It reflects the {{SVGAttr("height")}} filter primitive attribute. The attribute is a [``](/en-US/docs/Web/SVG/Content_type#length) or a [``](/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. + +## Value + +An {{domxref("SVGAnimatedLength")}}. + +## Example + +```js +const feDropShadow = document.querySelector("feDropShadow"); +const verticalSize = feDropShadow.height; +console.log(verticalSize.baseVal.value); // the `height` value +``` + +## Specifications + +{{Specifications}} + +## Browser compatibility + +{{Compat}} + +## See also + +- {{domxref("SVGFEDropShadowElement.width")}} +- CSS {{cssxref("filter-function/drop-shadow", "drop-shadow()")}} function +- CSS {{cssxref("box-shadow")}} property +- CSS {{cssxref("text-shadow")}} property +- CSS {{cssxref("blend-mode")}} data type +- CSS {{cssxref("mix-blend-mode")}} property diff --git a/files/en-us/web/api/svgfedropshadowelement/result/index.md b/files/en-us/web/api/svgfedropshadowelement/result/index.md new file mode 100644 index 000000000000000..9437130df939642 --- /dev/null +++ b/files/en-us/web/api/svgfedropshadowelement/result/index.md @@ -0,0 +1,45 @@ +--- +title: "SVGFEDropShadowElement: result property" +short-title: result +slug: Web/API/SVGFEDropShadowElement/result +page-type: web-api-instance-property +browser-compat: api.SVGFEDropShadowElement.result +--- + +{{APIRef("SVG")}} + +The **`result`** read-only property of the {{domxref("SVGFEDropShadowElement")}} interface describes the assigned name of an SVG filter primitive as a {{domxref("SVGAnimatedString")}}. + +It reflects the {{SVGAttr("result")}} attribute. 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. + +If no `result` attribute is defined, the filter's `result.baseVal` and `result.animVal` are empty strings, and the output of the `` 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. + +## Value + +An {{domxref("SVGAnimatedString")}}. + +## Example + +```js +const feDropShadowElement = document.querySelector("feDropShadow"); +const filterName = feDropShadowElement.result; +console.log(filterName.baseVa); // the filter's assigned name +``` + +## Specifications + +{{Specifications}} + +## Browser compatibility + +{{Compat}} + +## See also + +- {{domxref("SVGFEDropShadowElement.in1")}} +- {{cssxref("custom-ident")}} data type +- CSS {{cssxref("filter-function/drop-shadow", "drop-shadow()")}} function +- CSS {{cssxref("box-shadow")}} property +- CSS {{cssxref("text-shadow")}} property +- CSS {{cssxref("blend-mode")}} data type +- CSS {{cssxref("mix-blend-mode")}} property diff --git a/files/en-us/web/api/svgfedropshadowelement/width/index.md b/files/en-us/web/api/svgfedropshadowelement/width/index.md new file mode 100644 index 000000000000000..d698a58b79e7281 --- /dev/null +++ b/files/en-us/web/api/svgfedropshadowelement/width/index.md @@ -0,0 +1,42 @@ +--- +title: "SVGFEDropShadowElement: width property" +short-title: width +slug: Web/API/SVGFEDropShadowElement/width +page-type: web-api-instance-property +browser-compat: api.SVGFEDropShadowElement.width +--- + +{{APIRef("SVG")}} + +The **`width`** read-only property of the {{domxref("SVGFEDropShadowElement")}} interface describes the horizontal size of an SVG filter primitive as a {{domxref("SVGAnimatedLength")}}. + +It reflects the {{SVGAttr("width")}} filter primitive attribute. The attribute is a [``](/en-US/docs/Web/SVG/Content_type#length) or a [``](/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. + +## Value + +An {{domxref("SVGAnimatedLength")}}. + +## Example + +```js +const feDropShadow = document.querySelector("feDropShadow"); +const horizontalSize = feDropShadow.width; +console.log(horizontalSize.baseVal.value); // the `width` value +``` + +## Specifications + +{{Specifications}} + +## Browser compatibility + +{{Compat}} + +## See also + +- {{domxref("SVGFEDropShadowElement.height")}} +- CSS {{cssxref("filter-function/drop-shadow", "drop-shadow()")}} function +- CSS {{cssxref("box-shadow")}} property +- CSS {{cssxref("text-shadow")}} property +- CSS {{cssxref("blend-mode")}} data type +- CSS {{cssxref("mix-blend-mode")}} property diff --git a/files/en-us/web/api/svgfedropshadowelement/x/index.md b/files/en-us/web/api/svgfedropshadowelement/x/index.md new file mode 100644 index 000000000000000..0f90d3d2a9b177a --- /dev/null +++ b/files/en-us/web/api/svgfedropshadowelement/x/index.md @@ -0,0 +1,42 @@ +--- +title: "SVGFEDropShadowElement: x property" +short-title: x +slug: Web/API/SVGFEDropShadowElement/x +page-type: web-api-instance-property +browser-compat: api.SVGFEDropShadowElement.x +--- + +{{APIRef("SVG")}} + +The **`x`** read-only property of the {{domxref("SVGFEDropShadowElement")}} interface describes the horizontal coordinate of the position of an SVG filter primitive as a {{domxref("SVGAnimatedLength")}}. + +It reflects the {{SVGAttr("x")}} attribute of the {{SVGElement("feDropShadow")}} element, which creates a drop shadow of an input image. The attribute is a [``](/en-US/docs/Web/SVG/Content_type#length) or [``](/en-US/docs/Web/SVG/Content_type#percentage). The `` 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. + +## Value + +An {{domxref("SVGAnimatedLength")}}. + +## Example + +```js +const feDropShadow = document.querySelector("feDropShadow"); +const leftPosition = feDropShadow.x; +console.log(leftPosition.baseVal.value); // the `x` value +``` + +## Specifications + +{{Specifications}} + +## Browser compatibility + +{{Compat}} + +## See also + +- {{domxref("SVGFEDropShadowElement.y")}} +- CSS {{cssxref("filter-function/drop-shadow", "drop-shadow()")}} function +- CSS {{cssxref("box-shadow")}} property +- CSS {{cssxref("text-shadow")}} property +- CSS {{cssxref("blend-mode")}} data type +- CSS {{cssxref("mix-blend-mode")}} property diff --git a/files/en-us/web/api/svgfedropshadowelement/y/index.md b/files/en-us/web/api/svgfedropshadowelement/y/index.md new file mode 100644 index 000000000000000..d832badd3549e92 --- /dev/null +++ b/files/en-us/web/api/svgfedropshadowelement/y/index.md @@ -0,0 +1,42 @@ +--- +title: "SVGFEDropShadowElement: y property" +short-title: "y" +slug: Web/API/SVGFEDropShadowElement/y +page-type: web-api-instance-property +browser-compat: api.SVGFEDropShadowElement.y +--- + +{{APIRef("SVG")}} + +The **`y`** read-only property of the {{domxref("SVGFEDropShadowElement")}} interface describes the vertical coordinate of the position of an SVG filter primitive as a {{domxref("SVGAnimatedLength")}}. + +It reflects the {{SVGAttr("y")}} attribute of the {{SVGElement("feDropShadow")}} element, which creates a drop shadow of an input image. The attribute is a [``](/en-US/docs/Web/SVG/Content_type#length) or [``](/en-US/docs/Web/SVG/Content_type#percentage). The `` 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`. + +## Value + +An {{domxref("SVGAnimatedLength")}}. + +## Example + +```js +const feDropShadow = document.querySelector("feDropShadow"); +const topPosition = feDropShadow.y; +console.log(topPosition.baseVal.value); // the `y` value +``` + +## Specifications + +{{Specifications}} + +## Browser compatibility + +{{Compat}} + +## See also + +- {{domxref("SVGFEDropShadowElement.x")}} +- CSS {{cssxref("filter-function/drop-shadow", "drop-shadow()")}} function +- CSS {{cssxref("box-shadow")}} property +- CSS {{cssxref("text-shadow")}} property +- CSS {{cssxref("blend-mode")}} data type +- CSS {{cssxref("mix-blend-mode")}} property