Developer forum

Forum » Rapido » Background image on a paragraph container clips height and width

Background image on a paragraph container clips height and width

Conor McKeown
Conor McKeown
Reply

When setting a background image on a paragraph container without a focus, I would expect the image should expand or shrink to cover the area with either the height or the width being being clipped, but not both height and width being clipped. This in spite of the object-fit: cover; being set on the image.


Replies

 
Nicolai Pedersen
Reply

Can you post a screen dump of the result, the original image and the settings on the paragraph container?

Thanks, Nicolai

 
Conor McKeown
Conor McKeown
Reply

After looking more closely it seems that I was thrown off by a large image. If you have a large image, say 2000 x 1500,  as the viewport gets smaller than the image doesn't  shrink to fit. Not really a bug after all.

 
Nicolai Pedersen
Reply

ok - thanks for the update!

 
Conor McKeown
Conor McKeown
Reply

Just to close this out: when a background image for a paragraph container is larger than the paragraph container as it appears in the browser, is Rapido working as designed when it does not shrink the image to fit the area?

 
Nicolai Pedersen
Reply

I think it depends on the image crop setting of the paragraph...

 
Conor McKeown
Conor McKeown
Reply

There are no image crop setting for paragraph containers.

 
Nicolai Pedersen
Reply

Good point.

Can you show a dump of what you think is wrong - I cannot see it when I use an image as a background

 

You must be logged in to post in the forum