Fix scaling during loading for fluid images

Created on 1 May 2025, 9 days ago

Problem/Motivation

When using fluid images and modifying the aspect ratio using css the image can get the wrong height set.
This causes a short visual shift until the image finishes loading/rendering.

This seems to be caused by the height attribute getting set to the height of the element instead.

Steps to reproduce

Proposed resolution

Calculate height based on element width + intrinsic dimensions.

🐛 Bug report
Status

Active

Version

1.4

Component

Code

Created by

🇧🇪Belgium kubrick

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024