Open
Description
Description
Recently, the lightbox behavior was changed to remove duplicate images in the content (#63381) However, this introduces a bug in which the captions in galleries are still briefly visible when the lightbox is opened, first reported here.
We should determine the appropriate behavior for the caption in these circumstances and fix the lightbox behavior accordingly.
Step-by-step reproduction instructions
- Add a gallery block and set captions for few images.
- Enable
Expand on Click
for those images - Set the scroll position of the page to a place where image bottom is near window bottom.
- Now click on the image (with caption)
- Observe that there is a shadow in place of original image.
Screenshots, screen recording, code snippet
Environment info
No response
Please confirm that you have searched existing issues in the repo.
- Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
- Yes