Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

improve intrinsic dimension demo (see #628) #630

Merged
merged 2 commits into from
Feb 2, 2016
Merged

Conversation

aFarkas
Copy link
Collaborator

@aFarkas aFarkas commented Feb 2, 2016

This should fix #628.


<p>If the <a href="dist/plugins/intrinsic-dimension/">intrinsic dimension plugin</a> is installed: The <code>2x</code> source will be shown at the inherent width of the <code>1x</code> source—so the two sources will occupy the same space in your layout, but the <code>2x</code> source will be displayed at double the pixel density. This only applies to the <em>natural</em> size of the <code>img</code>—resizing the image via CSS will behave as expected.</p>
<p>If the <a href="dist/plugins/intrinsic-dimension/">intrinsic dimension plugin</a> is installed: The <code>2x</code> source will be automatically scaled down by 2 — so that the image will occupy the same space in your layout as the <code>1x</code>, but the <code>2x</code> source will be displayed at double the pixel density. This only applies to the <em>natural</em> size of the <code>img</code>—resizing the image via CSS or <code>width</code> content attribute will behave as expected.</p>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...or with the <code>width</code> content...

@mike-engel
Copy link
Collaborator

👍

aFarkas pushed a commit that referenced this pull request Feb 2, 2016
improve intrinsic dimension demo (see #628)
@aFarkas aFarkas merged commit e923f22 into 3.0 Feb 2, 2016
@aFarkas aFarkas deleted the intrinsic-dimension-demo branch February 2, 2016 22:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants