Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

Allow intrinsicsize on other elements #9

Open
eeeps opened this issue Sep 19, 2018 · 0 comments
Open

Allow intrinsicsize on other elements #9

eeeps opened this issue Sep 19, 2018 · 0 comments

Comments

@eeeps
Copy link

eeeps commented Sep 19, 2018

Seems like it may open cans of worms, but – I have two use cases, one more fleshed out than the other...

  1. Placeholders for images to be loaded later. For instance, let’s say I’m lazyloading or click-to-loading an image, and am using <a class="lazy-img" href="image.jpg">alternative text</a> as a fallback, like this: https://codepen.io/eeeps/pen/mGavRP. Being able to set an intrinsicsize on the <a> would be very useful; I can't think of another clean way to get it to be sized just like the eventual image will be, if the image is flexible in one dimension.

  2. Custom elements, which may be doing custom replaced-element-y things?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant