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

Remove iframe and img responsiveness rules. #18281

Closed
wants to merge 1 commit into from
Closed

Conversation

jasmussen
Copy link
Contributor

This is an alternative, and/or addition to #18240.

There is discussion around removing these base styles in favor of letting the theme do the work, and the img and iframe rules have been around for a while but might not be needed. This PR removes both those rules, the other only the iframe which seems to be the most offending.

This is an alternative, and/or addition to #18240.

There is discussion around removing these base styles in favor of letting the theme do the work, and the img and iframe rules have been around for a while but might not be needed. This PR removes both those rules, the other only the iframe which seems to be the most offending.
@jasmussen jasmussen added the [Type] Code Quality Issues or PRs that relate to code quality label Nov 5, 2019
@jasmussen jasmussen requested a review from aduth November 5, 2019 07:57
@aduth
Copy link
Member

aduth commented Nov 5, 2019

Historical context:

The img rule was added with max-width in a very early commit 6aec48e. This commit was largely plugin scaffolding and early prototyping.

The height style was added in #4752, addressing an issue caused by having max-width.

I guess one issue we may experience by removing the styles altogether is that images may overflow beyond the bounds of their block. Depending on how the theme would treat this on the front-end, it might still be the most accurate depiction of the image.

@aduth
Copy link
Member

aduth commented Nov 5, 2019

Closed as superseded by #18287

@aduth aduth closed this Nov 5, 2019
@aduth aduth deleted the remove/img-rule branch November 5, 2019 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants