Skip to content
Skip the list of specifications

-webkit-mask-position

below the visible threshold: 12 of 12 examples match Chrome

compat

Differs from Chrome only by anti-aliasing: no pixel is more than 3 of 255 apart on any colour channel, apart from places that differed as much without the declaration. Curves, rotation, gradients and translucent colours land here.

What the specification says

Syntax<position>#

The definition in compat

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.

-webkit-mask-position:bottom

below the visible threshold
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 Chrome5,788
The same, on the page without the declaration5,782
Largest difference on one colour channel3 of 255
The same, on the page without the declaration3 of 255

What differs is anti-aliasing only.

The example’s page

-webkit-mask-position:left bottom

below the visible threshold
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 Chrome5,788
The same, on the page without the declaration5,782
Largest difference on one colour channel3 of 255
The same, on the page without the declaration3 of 255

What differs is anti-aliasing only.

The example’s page

-webkit-mask-position:right

below the visible threshold
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 Chrome5,890
The same, on the page without the declaration5,782
Largest difference on one colour channel2 of 255
The same, on the page without the declaration3 of 255

What differs is anti-aliasing only.

The example’s page

-webkit-mask-position:right top

below the visible threshold
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 Chrome5,801
The same, on the page without the declaration5,782
Largest difference on one colour channel2 of 255
The same, on the page without the declaration3 of 255

What differs is anti-aliasing only.

The example’s page

-webkit-mask-position:right 20px top 20px

below the visible threshold
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 Chrome5,890
The same, on the page without the declaration5,782
Largest difference on one colour channel3 of 255
The same, on the page without the declaration3 of 255

What differs is anti-aliasing only.

The example’s page

-webkit-mask-position:center, -webkit-mask-position:50%, -webkit-mask-position:center center

below the visible threshold
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 Chrome5,890
The same, on the page without the declaration5,782
Largest difference on one colour channel3 of 255
The same, on the page without the declaration3 of 255

What differs is anti-aliasing only.

The example’s page

-webkit-mask-position:20px

below the visible threshold
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 Chrome5,890
The same, on the page without the declaration5,782
Largest difference on one colour channel3 of 255
The same, on the page without the declaration3 of 255

What differs is anti-aliasing only.

The example’s page

-webkit-mask-position:top, -webkit-mask-position:center top, -webkit-mask-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 Chrome5,782
The same, on the page without the declaration5,782
Largest difference on one colour channel3 of 255
The same, on the page without the declaration3 of 255

The pages differ by 5,782 pixels with the declaration and by 5,782 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 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
below the visible threshold
right
below the visible threshold
top
same effect as Chrome
bottom
below the visible threshold
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
below the visible threshold
50%
below the visible threshold
left topnot measured
center top
same effect as Chrome
right top
below the visible threshold
x-start topnot measured
x-end topnot measured
left centernot measured
left bottom
below the visible threshold
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
below the visible threshold
end endnot measured
left 20px top 20pxnot measured
right 20px top 20px
below the visible threshold
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