Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image causes unexpected if used inside intrinsic parent #84

Open
thien-do opened this issue Apr 30, 2021 · 0 comments
Open

Image causes unexpected if used inside intrinsic parent #84

thien-do opened this issue Apr 30, 2021 · 0 comments

Comments

@thien-do
Copy link
Contributor

Hi, I found a bug/interested behaviour when using Tailwind that caused by img { max-width: 100% }. Reading their code, it points to this (marvelous) project so I think you'd be interested too :D

The bug: tailwindlabs/tailwindcss#4211
The playground: https://play.tailwindcss.com/YQ7Rdp8lvn
TL;DR:

  1. imgs with percentaged width is considered as extrinsic child when calculating its intrinsic parent
  2. there is a bug (or technically, undefined behaviour) where percentaged max-width are treated as percentaged width (i.e. turning elements to extrinsic child)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant