Skip to content
This is an unmaintained snapshot of the Astro v4 docs. View the latest docs.

Cannot set both densities and widths

IncompatibleDescriptorOptions: Only one of densities or widths can be specified. In most cases, you’ll probably want to use only widths if you require specific widths.

Only one of densities or widths can be specified. Those attributes are used to construct a srcset attribute, which cannot have both x and w descriptors.

See Also:

Contribute

What’s on your mind?

Create GitHub Issue

Quickest way to alert our team of a problem.

Community