Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

webkit not honouring flex-basis percentage width with images #273

Open
ThePeach opened this issue Aug 27, 2019 · 1 comment
Open

webkit not honouring flex-basis percentage width with images #273

ThePeach opened this issue Aug 27, 2019 · 1 comment

Comments

@ThePeach
Copy link

Came across this one, and cannot figure out if it's been reported yet and where it should be filed under (I would somehow expect this to have been reported already, if not I'll be happy to report this upstream).

Anyhow, here's the live demo: https://codepen.io/ThePeach/pen/QWLpVEO?editors=1100
including a workaround that works on Chrome, but not on Safari.
With Safari I hit a problem that the max-width does not respect the ratio of the image.

On Firefox, no probs whatsoever.

Tested with:

  • Safari 12.1.2
  • Chrome 76
  • Firefox 68.0.2

all under OSX 10.14.6

@ThePeach
Copy link
Author

in the meantime, I've refined the workaround, and wrapped the image in a <div> tag which made the webkit workaround stick.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant