2500 shaares
965 private links
965 private links
- Descriptors must be unique
- Malformed descriptor
- X and W descriptors must not be mixed in one srcset attribute
- Sizes attribute must be set if W descriptors are used
- W descriptor doesn’t match the image size
- X descriptor doesn’t match the image size
- X descriptor must not be used if sizes attribute is set
- Missing
src
attribute- Images in
srcset
attribute must not be different- Images in
srcset
attribute must not have different aspect ratios- A fitting image source should be available for all screen sizes
- Images in different
<source>
elements shouldn’t be the same- Sizes attribute has to begin with
auto
to enable auto-sizes- Auto-sizes cannot be used without lazy-loading
- The
sizes
attribute has to match the width of the image- Multiple
<img>
elements are not allowed- Only
<source>
and<img>
tags are allowed inside of<picture>
- The
<img>
element must not be omitted inside of<picture>
- The
src
attribute has no effect on a<source>
element- The
<source>
element must not appear after an<img>
element