Skip to content

Every filter primitive accepts common attributes#41675

Merged
Josh-Cena merged 2 commits intomdn:mainfrom
Josh-Cena:filter-primitive-attr
Oct 27, 2025
Merged

Every filter primitive accepts common attributes#41675
Josh-Cena merged 2 commits intomdn:mainfrom
Josh-Cena:filter-primitive-attr

Conversation

@Josh-Cena
Copy link
Copy Markdown
Member

In preparation for #24169, we should document that filter primitives accept more attributes than what's listed here. We are still missing the global attributes, but that's a separate topic.

Also the three light source elements are not filter primitives, so removed words indicating that they are.

@Josh-Cena Josh-Cena requested a review from a team as a code owner October 25, 2025 18:18
@Josh-Cena Josh-Cena requested review from bsmth and chrisdavidmills and removed request for a team and chrisdavidmills October 25, 2025 18:18
@github-actions github-actions bot added Content:SVG SVG docs size/m [PR only] 51-500 LoC changed labels Oct 25, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Oct 25, 2025

Preview URLs (22 pages)
Flaws (23)

Note! 4 documents with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/SVG/Reference/Element/feBlend
Title: <feBlend>
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

URL: /en-US/docs/Web/SVG/Reference/Element/feColorMatrix
Title: <feColorMatrix>
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

URL: /en-US/docs/Web/SVG/Reference/Element/feComposite
Title: <feComposite>
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

URL: /en-US/docs/Web/SVG/Reference/Element/feConvolveMatrix
Title: <feConvolveMatrix>
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

URL: /en-US/docs/Web/SVG/Reference/Element/feDisplacementMap
Title: <feDisplacementMap>
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

URL: /en-US/docs/Web/SVG/Reference/Element/feDistantLight
Title: <feDistantLight>
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

URL: /en-US/docs/Web/SVG/Reference/Element/feDropShadow
Title: <feDropShadow>
Flaw count: 4

  • broken_links:
    • /en-US/docs/Web/SVG/Content_type#number is a redirect
    • /en-US/docs/Web/SVG/Content_type#number is a redirect
    • /en-US/docs/Web/SVG/Content_type#number-optional-number is a redirect
  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

URL: /en-US/docs/Web/SVG/Reference/Element/feFlood
Title: <feFlood>
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

URL: /en-US/docs/Web/SVG/Reference/Element/feGaussianBlur
Title: <feGaussianBlur>
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

URL: /en-US/docs/Web/SVG/Reference/Element/feImage
Title: <feImage>
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

URL: /en-US/docs/Web/SVG/Reference/Element/feMergeNode
Title: <feMergeNode>
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

URL: /en-US/docs/Web/SVG/Reference/Element/feMorphology
Title: <feMorphology>
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

URL: /en-US/docs/Web/SVG/Reference/Element/feOffset
Title: <feOffset>
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

URL: /en-US/docs/Web/SVG/Reference/Element/fePointLight
Title: <fePointLight>
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

URL: /en-US/docs/Web/SVG/Reference/Element/feSpotLight
Title: <feSpotLight>
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

URL: /en-US/docs/Web/SVG/Reference/Element/feTile
Title: <feTile>
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

URL: /en-US/docs/Web/SVG/Reference/Element/feTurbulence
Title: <feTurbulence>
Flaw count: 1

  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

URL: /en-US/docs/Web/SVG/Reference/Element/filter
Title: <filter>
Flaw count: 3

  • macros:
    • Macro produces link /en-US/docs/Web/SVG/Element which is a redirect
    • Macro produces link /en-US/docs/Web/SVG/Element which is a redirect
    • Macro produces link /en-US/docs/Web/SVG/Reference/Element/discard which is a redirect

(comment last updated: 2025-10-27 13:17:11)

- {{SVGAttr("in")}}: Values include `SourceGraphic`, `SourceAlpha`, `BackgroundImage`, `BackgroundAlpha`, `FillPaint`, `StrokePaint`, or a reference to another filter primitive.
- {{SVGAttr("type")}}: Values include `matrix`, `saturate`, `hueRotate`, and `luminanceToAlpha`.
- {{SVGAttr("values")}}: The value for the matrix type set in the `type` attribute.
- [Filter primitive attributes](/en-US/docs/Web/SVG/Reference/Attribute#filter_primitive_attributes_presentation_attributes): {{SVGAttr("x")}}, {{SVGAttr("y")}}, {{SVGAttr("width")}}, {{SVGAttr("height")}}, {{SVGAttr("result")}}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW Fly by note different terminating full stop in this list for other options (I'd remove it from other list options)

Copy link
Copy Markdown
Member

@bsmth bsmth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a comment there from Hamish about list formatting, but +1 from me on the rest 👍🏻

@Josh-Cena Josh-Cena requested a review from a team as a code owner October 27, 2025 13:15
@Josh-Cena Josh-Cena merged commit 62476ac into mdn:main Oct 27, 2025
8 checks passed
@Josh-Cena Josh-Cena deleted the filter-primitive-attr branch October 27, 2025 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:SVG SVG docs size/m [PR only] 51-500 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants