icons.sizes-mismatch
A sizes attribute must describe the file it points at
Why it matters
sizes exists so a client can pick one icon out of several without fetching them all. A wrong value costs exactly what the attribute was there to save. The usual shape is not a lie but a half-truth: a .ico carrying 16, 32 and 48 declared as 48x48 advertises a third of itself.
What the finding looks like
The message goflag prints, with example values substituted.
How to fix it
This rule ships no snippet, because the remedy is a judgement rather than a line of code: the finding tells you what is out of range, and what to put there is yours to decide.
Says who?
This rule is guideline, and it cites the documents below. Nothing here is goflag’s opinion of what a good page looks like — if you disagree with a finding, this is what you are disagreeing with.
- HTML Living Standard — link types
WHATWG · normative
- MDN — rel attribute values
MDN / Mozilla · guideline