Skip to content

Define image dimensions inline instead of via CSS#23

Merged
danielbachhuber merged 1 commit intopantheon-systems:masterfrom
westonruter:patch-1
Jul 6, 2018
Merged

Define image dimensions inline instead of via CSS#23
danielbachhuber merged 1 commit intopantheon-systems:masterfrom
westonruter:patch-1

Conversation

@westonruter
Copy link
Copy Markdown
Contributor

It is a best practice for image dimensions to be defined inline instead of via CSS. This prevents bad things from happening if the CSS fails to load (for example if the stylesheet gets excluded in AMP if it goes over 50KB):

screen shot 2018-07-06 at 11 35 20 am

@danielbachhuber
Copy link
Copy Markdown
Contributor

Thanks! Tests fixed in #24

@danielbachhuber danielbachhuber merged commit 26f2254 into pantheon-systems:master Jul 6, 2018
@danielbachhuber danielbachhuber added this to the 0.1.3 milestone Jul 6, 2018
@danielbachhuber
Copy link
Copy Markdown
Contributor

Just tagged the v0.1.3 release.

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