- 1. First image: in front
Painted over the others; transparent areas reveal what lies underneath.
- 2. Next image: behind
Each comma adds a background layer to the same box.
- 3. Base color: at the back
background-color sits below every image.
The box needs dimensions
An empty box can have zero height even when the image exists. Content, padding, aspect-ratio, or a minimum height must provide room to paint it.
Positioning and clipping are separate decisions
background-origin defines the reference area for size and position; its default is padding-box. background-clip defines where painting occurs; its default is border-box. Neither changes the element size.
background-image accepts none, url(), or generated images such as gradients. A solid color belongs in background-color. The playground tests one URL; the guide scenes add gradients and layers without expanding its controls.