Skip to content
Skip the list of specifications

object-position

same effect as Chrome: 5 of 5 examples match Chrome

css-images-3

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 value50% 50%
Applies toreplaced elements
Inheritedno
Percentagesrefer to width and height of element itself
Computed valueas for background-position
Syntax<position>

The definition in css-images-3

The measurements

5 examples, all 5 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.

object-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 Chrome3,274
The same, on the page without the declaration3,734
Largest difference on one colour channel87 of 255
The same, on the page without the declaration87 of 255

The pages differ by 3,274 pixels with the declaration and by 3,734 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

object-position:left 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 Chrome3,274
The same, on the page without the declaration3,734
Largest difference on one colour channel87 of 255
The same, on the page without the declaration87 of 255

The pages differ by 3,274 pixels with the declaration and by 3,734 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

object-position:left 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 Chrome3,434
The same, on the page without the declaration3,734
Largest difference on one colour channel87 of 255
The same, on the page without the declaration87 of 255

The pages differ by 3,434 pixels with the declaration and by 3,734 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

object-position:20px, object-position:20px 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 Chrome3,574
The same, on the page without the declaration3,734
Largest difference on one colour channel87 of 255
The same, on the page without the declaration87 of 255

The pages differ by 3,574 pixels with the declaration and by 3,734 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

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 53 branches, and 5 of them carry a measurement.

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

Measured against Chrome 148.0.7778.96 on 5 November 2026, with up to 40 candidate values tried per property. How it was measured