Check the width against the srcset values #660
Labels
e:3
Effort: 3
enhancement
New feature or request
good first issue
Good for newcomers
linter
Check related issues
Is your feature request related to a problem? Please describe.
When you output an image like this:
The
image_url: width:
value is going to limit the whatwidths
you can output/generate. So ideally theimage_url: width:
value should be similar to the highest value declared in thewidths:
.Describe the solution you'd like
There could be a warning showing up when the value is different or lower 🤔
Describe alternatives you've considered
Manual checking 😅
Additional context
This is something we ran into in Dawn. We realized we were using
1500
on the image banner image and it would never output an image bigger than1500
despite having somewidths
set up to3840
.The text was updated successfully, but these errors were encountered: