rsnext/packages
Steven fe762d329f
Fix next/image svg blur placeholder with fill (#41573)
This PR fixes two bugs:

- Fixes #40419 
- Fixes #41393 

The first is when the aspect ratio of the `width` and `height` does not
match the aspect ratio of the `blurDataURL` provided. This can result in
artifacts around the edges. The solution is to add
`preserveAspectRatio="none"`.

The second is when there is no `width` or `height` provided (which is
normal when using `fill`) so the viewBox was undefined. This can also
cause artifacts around the edges. The solution is to change the blur
technique from gaussian to css filter, similar to `next/legacy/image`.

Note: css blur might be [slower in
firefox](https://bugzilla.mozilla.org/show_bug.cgi?id=925025) which is
why we'll only use it for this corner case.
2022-10-19 13:21:41 -07:00
..
create-next-app v12.3.2-canary.32 2022-10-19 13:29:32 +02:00
eslint-config-next v12.3.2-canary.32 2022-10-19 13:29:32 +02:00
eslint-plugin-next v12.3.2-canary.32 2022-10-19 13:29:32 +02:00
font v12.3.2-canary.32 2022-10-19 13:29:32 +02:00
next Fix next/image svg blur placeholder with fill (#41573) 2022-10-19 13:21:41 -07:00
next-bundle-analyzer v12.3.2-canary.32 2022-10-19 13:29:32 +02:00
next-codemod v12.3.2-canary.32 2022-10-19 13:29:32 +02:00
next-env v12.3.2-canary.32 2022-10-19 13:29:32 +02:00
next-mdx v12.3.2-canary.32 2022-10-19 13:29:32 +02:00
next-plugin-storybook v12.3.2-canary.32 2022-10-19 13:29:32 +02:00
next-polyfill-module v12.3.2-canary.32 2022-10-19 13:29:32 +02:00
next-polyfill-nomodule v12.3.2-canary.32 2022-10-19 13:29:32 +02:00
next-swc v12.3.2-canary.32 2022-10-19 13:29:32 +02:00
react-dev-overlay v12.3.2-canary.32 2022-10-19 13:29:32 +02:00
react-refresh-utils v12.3.2-canary.32 2022-10-19 13:29:32 +02:00