rsnext/test/integration/image-future
Steven 59a01ec709
Fix next/future/image alt text (#39366)
In many browsers (other than Chrome), the `alt` text is visible while the image is loading. This causes a sense layout shift since you'll see a flash of text and then the image (although lighthouse measures 0 CLS, likely because Chrome doesn't have this problem). This PR updates `next/future/image` to hide the alt text, unless there is an error while loading the image in which case the `alt` text because relevant as the fallback.

Example:

<img width="115" alt="image" src="https://user-images.githubusercontent.com/229881/183128008-0660c50c-18aa-4e64-872e-ada9a652130f.png">

Unfortunately, Safari also shows a border while lazy loading images and it cannot be styled.

See upstream issue here: https://bugs.webkit.org/show_bug.cgi?id=243601
2022-08-06 03:53:13 +00:00
..
asset-prefix Add experimental next/future/image component (#37927) 2022-06-24 14:56:05 +00:00
base-path Improve next/image error message when src prop is missing (#38847) 2022-07-20 21:26:38 +00:00
default Fix next/future/image alt text (#39366) 2022-08-06 03:53:13 +00:00
image-from-node-modules Add experimental next/future/image component (#37927) 2022-06-24 14:56:05 +00:00
noscript Remove unnecessary <noscript> from next/future/image (#38080) 2022-06-28 00:58:50 +00:00
react-virtualized Add experimental next/future/image component (#37927) 2022-06-24 14:56:05 +00:00
svgo-webpack Add experimental next/future/image component (#37927) 2022-06-24 14:56:05 +00:00
trailing-slash Add experimental next/future/image component (#37927) 2022-06-24 14:56:05 +00:00
typescript Add "fill" mode to next/future/image (#38855) 2022-08-01 18:21:36 +00:00
unicode Add experimental next/future/image component (#37927) 2022-06-24 14:56:05 +00:00
unoptimized Update image tests from placeholder.com to *.vercel.app (#38081) 2022-06-28 01:20:59 +00:00