A gradient layer over a fallback color
background-color: #F3EFE4;
background-image: linear-gradient(...);
background-repeat: no-repeat;
background-size: 100% 50%;The color sits behind the gradient. There is no url() image, so the example does not depend on a network file.
- If this had used url() and the file had failed, the #F3EFE4 color could still show. That failure mode is not demonstrated with a request.
<div class="hero">
<p>Gradient over a solid color, no image request</p>
</div>
<style>
.hero {
background-color: #F3EFE4;
background-image: linear-gradient(180deg, #0B5853, transparent);
background-repeat: no-repeat;
background-position: top;
background-size: 100% 50%;
padding: 1.5rem 1rem 2.5rem;
color: #1B1814;
font-family: sans-serif;
}
</style>What this markup means
.hero has a solid fallback color and a linear-gradient as the only image layer, covering the top half and fading to transparent. No url() appears in the rule, so the documentation checker never requests an image. The color would also be the visible fallback if a url() layer had failed.