Skip to content

Conversation

trevordmiller
Copy link

No description provided.

@trevordmiller trevordmiller changed the title Add image overflow prevention Add media overflow prevention Mar 17, 2018
@sindresorhus
Copy link
Owner

Can you elaborate on why this should be included and link to some source about the solution?

@trevordmiller
Copy link
Author

Having max-width: 100% on media elements like img and video ensures that they don't overflow their container (for modern responsive web development). This is an opinionated thing so maybe it doesn't belong in modern-normalize but I can't think of a situation where you wouldn't want to prevent overflowing by default?
https://developer.mozilla.org/en-US/docs/Web/CSS/max-width

@sindresorhus
Copy link
Owner

I added it to e811a7e instead. Thanks for the suggestion.

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

Successfully merging this pull request may close these issues.

2 participants