astro/packages/integrations/image/test
Emmanuel Chucks ed2dfdae5b
fix: updates <Picture /> to pass HTML attributes down to the <img /> element (#5038)
* fix: also pass attrs to underlying img

`class` for direct img styling, `width` & `height` to prevent layout shift, etc need to be passed to the underlying img tag to work.

* remove redundant attr from picture tag

* revert to previous commit

- seemed to break some tests
- can't deal with fixing that right now, maybe later

* only passing attributes to the img

* adding a note to the README

* chore: add changeset

Co-authored-by: Tony Sullivan <tony.f.sullivan@outlook.com>
2022-10-20 19:42:36 +00:00
..
fixtures fix: updates <Picture /> to pass HTML attributes down to the <img /> element (#5038) 2022-10-20 19:42:36 +00:00
background-color-image-ssg.test.js [@astrojs/image] flatten background only if alpha channel isn't supported (#4800) 2022-09-20 20:25:45 +00:00
background-color-image-ssr.test.js [@astrojs/image] flatten background only if alpha channel isn't supported (#4800) 2022-09-20 20:25:45 +00:00
get-image.test.js [ci] format 2022-10-07 21:10:32 +00:00
image-ssg.test.js [ci] format 2022-09-30 17:29:32 +00:00
image-ssr-build.test.js Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
image-ssr-dev.test.js [ci] format 2022-09-30 17:29:32 +00:00
no-alt-text-image-ssg.test.js feat(image): throw if alt text is missing (#4511) 2022-09-01 21:24:07 +00:00
no-alt-text-image-ssr.test.js feat(image): throw if alt text is missing (#4511) 2022-09-01 21:24:07 +00:00
no-alt-text-picture-ssg.test.js feat(image): throw if alt text is missing (#4511) 2022-09-01 21:24:07 +00:00
no-alt-text-picture-ssr.test.js feat(image): throw if alt text is missing (#4511) 2022-09-01 21:24:07 +00:00
picture-ssg.test.js fix: updates <Picture /> to pass HTML attributes down to the <img /> element (#5038) 2022-10-20 19:42:36 +00:00
picture-ssr-build.test.js fix: updates <Picture /> to pass HTML attributes down to the <img /> element (#5038) 2022-10-20 19:42:36 +00:00
picture-ssr-dev.test.js fix: updates <Picture /> to pass HTML attributes down to the <img /> element (#5038) 2022-10-20 19:42:36 +00:00
rotation.test.js [@astrojs/image] Build all optimized images to dist/assets (#4678) 2022-09-08 18:41:17 +00:00
sharp.test.js [@astrojs/image] support additional resize options (#4438) 2022-09-09 20:13:59 +00:00
squoosh-service.test.js Support relative protocol image URL (#5072) 2022-10-13 11:59:38 -04:00
test-utils.js Adds an @astrojs/image integration for optimizing images (#3694) 2022-07-01 15:47:48 +00:00
with-mdx.test.js [@astrojs/image] Build all optimized images to dist/assets (#4678) 2022-09-08 18:41:17 +00:00