Skip to content
Skip the list of specifications

background-position

same effect as Chrome: 12 of 12 examples match Chrome

css-backgrounds-4

The declaration changes our page the way it changes Chrome’s. What still differs between the two renderings was there before the declaration too, on the same page without it (mostly the fonts): no larger with it, or in the same places and no stronger.

What the specification says

Initial value0% 0%
Applies toall elements
Inheritedno
Percentagesrefer to size of background positioning area minus size of background image; see text
Computed valuea list, each item a pair of offsets (horizontal and vertical) from the top left origin, each offset given as a computed <length-percentage> value
Syntax<bg-position>#

The definition in css-backgrounds-4

The measurements

12 examples, all 12 match Chrome. 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.

background-position:right

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome0
The same, on the page without the declaration0
Largest difference on one colour channel0 of 255
The same, on the page without the declaration0 of 255

Identical to Chrome.

The example’s page

background-position:bottom

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome0
The same, on the page without the declaration0
Largest difference on one colour channel0 of 255
The same, on the page without the declaration0 of 255

Identical to Chrome.

The example’s page

background-position:right top

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome0
The same, on the page without the declaration0
Largest difference on one colour channel0 of 255
The same, on the page without the declaration0 of 255

Identical to Chrome.

The example’s page

background-position:left bottom

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome0
The same, on the page without the declaration0
Largest difference on one colour channel0 of 255
The same, on the page without the declaration0 of 255

Identical to Chrome.

The example’s page

background-position:right 20px top 20px

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome0
The same, on the page without the declaration0
Largest difference on one colour channel0 of 255
The same, on the page without the declaration0 of 255

Identical to Chrome.

The example’s page

background-position:center, background-position:50%, background-position:center center

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome0
The same, on the page without the declaration0
Largest difference on one colour channel0 of 255
The same, on the page without the declaration0 of 255

Identical to Chrome.

The example’s page

background-position:20px

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome0
The same, on the page without the declaration0
Largest difference on one colour channel0 of 255
The same, on the page without the declaration0 of 255

Identical to Chrome.

The example’s page

background-position:top, background-position:center top, background-position:50% top

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome0
The same, on the page without the declaration0
Largest difference on one colour channel0 of 255
The same, on the page without the declaration0 of 255

Identical to Chrome.

The example’s page

Which values were measured

A match on one example means a match at the value tried. The property’s grammar has 63 branches, and 12 of them carry a measurement. At most 12 examples are published per property, so a branch past that is left out by our choice.

ValueMeasured
leftnot measured
center
same effect as Chrome
right
same effect as Chrome
top
same effect as Chrome
bottom
same effect as Chrome
x-startnot measured
x-endnot measured
y-startnot measured
y-endnot measured
block-startnot measured
block-endnot measured
inline-startnot measured
inline-endnot measured
20px
same effect as Chrome
50%
same effect as Chrome
left topnot measured
center top
same effect as Chrome
right top
same effect as Chrome
x-start topnot measured
x-end topnot measured
left centernot measured
left bottom
same effect as Chrome
left y-startnot measured
left y-endnot measured
20px topnot measured
50% top
same effect as Chrome
left 20pxnot measured
left 50%not measured
block-start inline-startnot measured
center inline-startnot measured
block-end inline-startnot measured
block-start centernot measured
block-start inline-endnot measured
start startnot measured
center center
same effect as Chrome
end endnot measured
left 20px top 20pxnot measured
right 20px top 20px
same effect as Chrome
x-start 20px top 20pxnot measured
x-end 20px top 20pxnot measured
left 50% top 20pxnot measured
left 20px bottom 20pxnot measured
left 20px y-start 20pxnot measured
left 20px y-end 20pxnot measured
left 20px top 50%not measured
block-start 20px inline-start 20pxnot measured
block-end 20px inline-start 20pxnot measured
block-start 50% inline-start 20pxnot measured
block-start 20px inline-end 20pxnot measured
block-start 20px inline-start 50%not measured
start 20px start 20pxnot measured
end 20px end 20pxnot measured
start 50% start 50%not measured
left top 20pxnot measured
center top 20pxnot measured
right top 20pxnot measured
left bottom 20pxnot measured
left top 50%not measured
left 20px topnot measured
right 20px topnot measured
left 50% topnot measured
left 20px centernot measured
left 20px bottomnot 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