このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

SVGFEDropShadowElement: width プロパティ

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020年1月.

widthSVGFEDropShadowElement インターフェイスの読み取り専用プロパティで、SVG フィルタープリミティブの水平サイズを SVGAnimatedLength で記述します。

これは、width フィルタープリミティブ属性を反映しています。この属性は、フィルター領域の幅に対する <length> または <percentage> です。デフォルト値は 100% です。プロパティの値は、ユーザー座標系単位での長さです。

SVGAnimatedLength です。

js
const feDropShadow = document.querySelector("feDropShadow");
const horizontalSize = feDropShadow.width;
console.log(horizontalSize.baseVal.value); // `width` の値

仕様書

Specification
Filter Effects Module Level 1
# dom-svgfilterprimitivestandardattributes-width

ブラウザーの互換性

関連情報