Closed Fil closed 2 years ago
longdesc
is deprecated and afaik not used anywhere. You probably meant title
?
oops, correct! Now I refreshed my memory by reading https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img and it seems that intrisicsize could also be useful in some cases. And also styles.
Also mentioned in the feedback repo: https://github.com/observablehq/feedback/issues/268
In https://github.com/observablehq/stdlib/blob/main/src/fileAttachment.js#L43 it would be interesting to add options such as:
longdescA short-hand notation for "half-size" would also be useful (maybe
{pixelRatio: 2}
?) currently, when you upload a screenshot taken on a retina screen, you need to look up the image's width, then write a full<img src="….url()" width="W/2">
tag.