-webkit-background-size
renders differently: 0 of 6 examples match Chrome
compat
The property takes effect, but our pixels are not Chrome’s. The difference map on this page shows where.
What the specification says
| Syntax | <bg-size># |
|---|
The measurements
6 examples, all 6 render differently. Each is one declaration on a small page, drawn by Chrome and by our engine. Drag on a picture to move the line between them.
-webkit-background-size:20px
renders differently

| Pixels that differ from Chrome | 3,263 |
|---|---|
| The same, on the page without the declaration | 0 |
| Largest difference on one colour channel | 255 of 255 |
| The same, on the page without the declaration | 0 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
-webkit-background-size:50%
renders differently

| Pixels that differ from Chrome | 13,771 |
|---|---|
| The same, on the page without the declaration | 0 |
| Largest difference on one colour channel | 255 of 255 |
| The same, on the page without the declaration | 0 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
-webkit-background-size:4px
renders differently

| Pixels that differ from Chrome | 751 |
|---|---|
| The same, on the page without the declaration | 0 |
| Largest difference on one colour channel | 255 of 255 |
| The same, on the page without the declaration | 0 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
-webkit-background-size:40%
renders differently

| Pixels that differ from Chrome | 12,882 |
|---|---|
| The same, on the page without the declaration | 0 |
| Largest difference on one colour channel | 255 of 255 |
| The same, on the page without the declaration | 0 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
-webkit-background-size:calc(20px + 4px)
renders differently

| Pixels that differ from Chrome | 3,851 |
|---|---|
| The same, on the page without the declaration | 0 |
| Largest difference on one colour channel | 255 of 255 |
| The same, on the page without the declaration | 0 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
-webkit-background-size:calc(40% + 20px)
renders differently

| Pixels that differ from Chrome | 12,957 |
|---|---|
| The same, on the page without the declaration | 0 |
| Largest difference on one colour channel | 255 of 255 |
| The same, on the page without the declaration | 0 of 255 |
The declaration takes effect differently from Chrome: the difference map shows where.
Which values were measured
A match on one example means a match at the value tried. The property’s grammar has 5 branches, and 2 of them carry a measurement.
| Value | Measured |
|---|---|
20px4pxcalc(20px + 4px) | renders differently renders differently renders differently |
50%40%calc(40% + 20px) | renders differently renders differently renders differently |
cover | not measured |
contain | not measured |
auto | not measured |
Measured against Chrome 148.0.7778.96 on 5 November 2026, with up to 40 candidate values tried per property. How it was measured