NEW 287982
[svg] https://codepen.io/thebabydino/pen/XJrYqGb is slow because of an SVG filter
https://bugs.webkit.org/show_bug.cgi?id=287982
Summary [svg] https://codepen.io/thebabydino/pen/XJrYqGb is slow because of an SVG fi...
Antoine Quint
Reported 2025-02-19 10:49:59 PST
I was looking at https://codepen.io/thebabydino/pen/XJrYqGb to understand why it was so slow in WebKit compared to Chrome when scrolling, and commenting out the `filter` property here: ``` &::before { position: absolute; inset: 0; z-index: -1; background: #000; filter: url(#grain); content: '' } ``` … addresses the performance issue. The SVG filter referenced here is: ``` <filter id="grain"> <feTurbulence type="fractalNoise" baseFrequency="7.13"></feTurbulence> <feColorMatrix type="saturate" values="0"></feColorMatrix> <feComponentTransfer> <feFuncA type="linear" slope=".02"></feFuncA> </feComponentTransfer> <feBlend in2="SourceGraphic"></feBlend> </filter> ```
Attachments
Radar WebKit Bug Importer
Comment 1 2025-02-19 10:56:42 PST
Note You need to log in before you can comment on or make changes to this bug.