CSS Property '-webkit-background-size'
| Chrome | Firefox | IE | Opera | Safari |
|---|---|---|---|---|
| ✓ | 12.5 | 3 |
- CSS Level
- 3.0
- Module
- Background and Borders
- Restriction
- length, percentage
- Example
- header { -webkit-background-size: 20px; }
- Reference
- www.w3.org
- Description
- Specifies the size of the background images.
| Name | Chrome | Firefox | IE | Opera | Safari |
|---|---|---|---|---|---|
| auto | ✓ | 12.5 | 3 | ||
| contain | ✓ | 12.5 | 3 | ||
| Scale the image, while preserving its intrinsic aspect ratio (if any), to the largest size such that both its width and its height can fit inside the background positioning area. | |||||
| cover | ✓ | 12.5 | 3 | ||
| Scale the image, while preserving its intrinsic aspect ratio (if any), to the smallest size such that both its width and its height can completely cover the background positioning area. | |||||
Help make Visual Studio better. Report CSS bugs here