What are you trying to do? (please be as specific as possible and include relevant screenshots, code snippets)
Apply a border to an image that has width = Stretch and is within a horizontal or vertical stack and have it render correctly on Safari. See minimal test case project and associated live demo.
What are the reproduction steps?
- Create a horizontal or vertical stack.
- Add an image as child of the stack.
- Set the width property of the image to “Stretch”.
- Set the border properties of the image so that it has an easily visible border (e.g. solid, 1em wide).
- Publish and view the result with Safari (desktop or mobile).
- Note that when viewed with Safari, the image will incorrectly have gaps inside the border above and below the image. The size of the gaps will be approximately the same as the width of the border.
The issue appears to be related to the fact that Plasmic wraps each image in its own flexbox with CSS class __wab_img-wrapper. The associated styles for that class include flex-direction: column. The following global CSS works around the issue by changing it to be flex-direction: row:
:where(.__wab_img-wrapper) {
flex-direction: row;
}
Relevant links: