astro/packages/integrations/image/test/fixtures
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
..
background-color-image Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
basic-image [@astrojs/image] fixes a bug in dev when <Image /> is used with no transformation props (#4933) 2022-09-30 17:27:56 +00:00
basic-picture fix: updates <Picture /> to pass HTML attributes down to the <img /> element (#5038) 2022-10-20 19:42:36 +00:00
get-image-remote Fix remote images in SSG mode (#5021) 2022-10-07 17:08:15 -04:00
no-alt-text-image Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
no-alt-text-picture Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
rotation Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00
squoosh-service Support relative protocol image URL (#5072) 2022-10-13 11:59:38 -04:00
with-mdx Adding an optional image service based on Squoosh (#4738) 2022-09-22 19:48:14 +00:00