bplmaps / lane-mead-portal

Lane-Mead portal for collections and research on Boston's maritime industrial history
GNU General Public License v3.0
2 stars 0 forks source link

Images are getting refitted to frames when they leave the viewer? #29

Closed ericrobskyhuntley closed 3 weeks ago

ericrobskyhuntley commented 3 weeks ago

Weird issue! Scrolling down the page past a given image leads it to be refitted to its frame (from what looks like cover to fill). No obvious changes to element classes or CSS...?

ericrobskyhuntley commented 3 weeks ago

For reasons that are truly mystifying to me, this was caused by the following global style in Layout.astro... getting rid of this fixed the issue.

<style is:global>
    /* Improve Page speed */
    /* https://css-tricks.com/almanac/properties/c/content-visibility/ */
    img {
      content-visibility: auto;
    }
</style>