Groups - the
<g> tag in SVG - are somewhat akin to
<div> elements on web pages, in that they contain and control related SVG elements. However, there are some very distinct differences between
<div> elements are important to understand:
In previous articles I’ve addressed why we need responsive images (fluid design plus screen pixel densities) and looked at the
<picture> element, while conducting investigations of the
x descriptors. Today I’ll explain the
sizes attribute, the trickiest part of the new specification.
sizes is… odd. It looks weird. It acts weird. But it is the final missing piece of the spec, the part that brings everything together, and therefore key to understanding responsive image syntax.
If there’s one thing to keep in mind about
sizes, it’s this:
sizes expresses the designer’s intentions for the image. It does so with a little bit of math, for one reason…
Recently a student of mine pointed out a common web page layout problem that I had been unaware of. Of course, once it was pointed out to me, I couldn’t unsee it, and had to find a solution. On the same day, Šime Vidas made me aware of a subtle new CSS addition to control typographic layout. This article introduces both.