Skip to content
Documentation
Rule catalogue

icons.sizes-mismatch

A sizes attribute must describe the file it points at

infoper pageguideline

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.

info icons.sizes-mismatch sizes does not describe the file: /favicon.ico declares 48x48 and contains 16x16, 32x32, 48x48.

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.