My knowledge of the latest CSS updates is a bit outdated, so I thought it was worth inquiring;
The <img>
tag is typically written as <img src="/url.png" />
, with auto or specified height and width. While I appreciate CSS sprites for their faster load times, I find writing all that CSS tedious. Is there, or will there ever be, a syntax like
<img src="/url.png" Xpx Ypx />
, where X/Y represents a location shift similar to CSS's background-position
?
I acknowledge that this approach could be awkward due to image dimensions scaling in HTML (versus cropping like a div with a background image).
Is this feasible, or am I just looking for shortcuts?