Skip to content

Commit

Permalink
removes default content-visibility styles from image components (#5180)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Sullivan authored and bholmesdev committed Dec 12, 2022
1 parent 6143888 commit 4049287
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .changeset/chilly-experts-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@astrojs/image': minor
---

Removes the `content-visibility: auto` styling added by the `<Picture />` and `<Image />` components.

**Why:** The [content-visibility](https://developer.mozilla.org/en-US/docs/Web/CSS/content-visibility) style is rarely needed for an `<img>` and can actually break certain layouts.

**Migration:** Do images in your layout actually depend on `content-visibility`? No problem! You can add these styles where needed in your own component styles.

0 comments on commit 4049287

Please sign in to comment.