diff --git a/files/en-us/web/api/svgfemorphologyelement/height/index.md b/files/en-us/web/api/svgfemorphologyelement/height/index.md new file mode 100644 index 000000000000000..f9c60fe95ae9d94 --- /dev/null +++ b/files/en-us/web/api/svgfemorphologyelement/height/index.md @@ -0,0 +1,37 @@ +--- +title: "SVGFEMorphologyElement: height property" +short-title: height +slug: Web/API/SVGFEMorphologyElement/height +page-type: web-api-instance-property +browser-compat: api.SVGFEMorphologyElement.height +--- + +{{APIRef("SVG")}} + +The **`height`** read-only property of the {{domxref("SVGFEMorphologyElement")}} interface describes the vertical size of an SVG filter primitive as a {{domxref("SVGAnimatedLength")}}. + +It reflects the {{SVGAttr("height")}} attribute of the {{SVGElement("feMorphology")}} element. 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 feMorphology = document.querySelector("feMorphology"); +const verticalSize = feMorphology.height; +console.log(verticalSize.baseVal.value); // the `height` value +``` + +## Specifications + +{{Specifications}} + +## Browser compatibility + +{{Compat}} + +## See also + +- {{domxref("SVGFEMorphologyElement.width")}} diff --git a/files/en-us/web/api/svgfemorphologyelement/result/index.md b/files/en-us/web/api/svgfemorphologyelement/result/index.md new file mode 100644 index 000000000000000..7788df55ea1452a --- /dev/null +++ b/files/en-us/web/api/svgfemorphologyelement/result/index.md @@ -0,0 +1,40 @@ +--- +title: "SVGFEMorphologyElement: result property" +short-title: result +slug: Web/API/SVGFEMorphologyElement/result +page-type: web-api-instance-property +browser-compat: api.SVGFEMorphologyElement.result +--- + +{{APIRef("SVG")}} + +The **`result`** read-only property of the {{domxref("SVGFEMorphologyElement")}} interface describes the assigned name of an SVG filter primitive as a {{domxref("SVGAnimatedString")}}. + +It reflects the {{SVGAttr("result")}} attribute of the {{SVGElement("feMorphology")}} element. 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 feMorphologyElement = document.querySelector("feMorphology"); +const filterName = feMorphologyElement.result; +console.log(filterName.baseVal); // the filter's assigned name +``` + +## Specifications + +{{Specifications}} + +## Browser compatibility + +{{Compat}} + +## See also + +- {{domxref("SVGFEMorphologyElement.in1")}} +- {{cssxref("custom-ident")}} data type diff --git a/files/en-us/web/api/svgfemorphologyelement/width/index.md b/files/en-us/web/api/svgfemorphologyelement/width/index.md new file mode 100644 index 000000000000000..3adf39c966fe1e8 --- /dev/null +++ b/files/en-us/web/api/svgfemorphologyelement/width/index.md @@ -0,0 +1,37 @@ +--- +title: "SVGFEMorphologyElement: width property" +short-title: width +slug: Web/API/SVGFEMorphologyElement/width +page-type: web-api-instance-property +browser-compat: api.SVGFEMorphologyElement.width +--- + +{{APIRef("SVG")}} + +The **`width`** read-only property of the {{domxref("SVGFEMorphologyElement")}} interface describes the horizontal size of an SVG filter primitive as a {{domxref("SVGAnimatedLength")}}. + +It reflects the {{SVGAttr("width")}} attribute of the {{SVGElement("feMorphology")}} element. 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 feMorphology = document.querySelector("feMorphology"); +const horizontalSize = feMorphology.width; +console.log(horizontalSize.baseVal.value); // the `width` value +``` + +## Specifications + +{{Specifications}} + +## Browser compatibility + +{{Compat}} + +## See also + +- {{domxref("SVGFEMorphologyElement.height")}} diff --git a/files/en-us/web/api/svgfemorphologyelement/x/index.md b/files/en-us/web/api/svgfemorphologyelement/x/index.md new file mode 100644 index 000000000000000..5104d36f93f8e1e --- /dev/null +++ b/files/en-us/web/api/svgfemorphologyelement/x/index.md @@ -0,0 +1,39 @@ +--- +title: "SVGFEMorphologyElement: x property" +short-title: x +slug: Web/API/SVGFEMorphologyElement/x +page-type: web-api-instance-property +browser-compat: api.SVGFEMorphologyElement.x +--- + +{{APIRef("SVG")}} + +The **`x`** read-only property of the {{domxref("SVGFEMorphologyElement")}} 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("feMorphology")}} element. 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. The default value is `0`. + +## Value + +An {{domxref("SVGAnimatedLength")}}. + +## Example + +```js +const feMorphology = document.querySelector("feMorphology"); +const leftPosition = feMorphology.x; +console.log(leftPosition.baseVal.value); // the `x` value +``` + +## Specifications + +{{Specifications}} + +## Browser compatibility + +{{Compat}} + +## See also + +- {{domxref("SVGFEMorphologyElement.y")}} +- CSS {{cssxref("blend-mode")}} data type +- CSS {{cssxref("mix-blend-mode")}} property diff --git a/files/en-us/web/api/svgfemorphologyelement/y/index.md b/files/en-us/web/api/svgfemorphologyelement/y/index.md new file mode 100644 index 000000000000000..022489b6eca562f --- /dev/null +++ b/files/en-us/web/api/svgfemorphologyelement/y/index.md @@ -0,0 +1,39 @@ +--- +title: "SVGFEMorphologyElement: y property" +short-title: "y" +slug: Web/API/SVGFEMorphologyElement/y +page-type: web-api-instance-property +browser-compat: api.SVGFEMorphologyElement.y +--- + +{{APIRef("SVG")}} + +The **`y`** read-only property of the {{domxref("SVGFEMorphologyElement")}} 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("feMorphology")}} element. 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 feMorphology = document.querySelector("feMorphology"); +const topPosition = feMorphology.y; +console.log(topPosition.baseVal.value); // the `y` value +``` + +## Specifications + +{{Specifications}} + +## Browser compatibility + +{{Compat}} + +## See also + +- {{domxref("SVGFEMorphologyElement.x")}} +- CSS {{cssxref("blend-mode")}} data type +- CSS {{cssxref("mix-blend-mode")}} property