Skip to content
Skip the list of specifications

border-shape

matches Chrome on some values: 10 of 12 examples match Chrome

css-borders-4

Some of the examples match Chrome and some do not: the count says how many, and the values that differ are listed first, each with its difference map.

The 2 that do not: border-shape:ellipse(80px 40px), border-shape:inset(20px) margin-box. They come first below, each with its difference map.

What the specification says

Initial valuenone
Applies toall elements
Inheritedno
Percentagessee prose
Computed valuelist, each item a computed color
Syntaxnone | [ <basic-shape> <geometry-box>?]{1,2}

The definition in css-borders-4

The measurements

12 examples: two render differently and come first and ten 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.

border-shape:ellipse(80px 40px)

renders differently
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 Chrome117
The same, on the page without the declaration0
Largest difference on one colour channel132 of 255
The same, on the page without the declaration0 of 255

The declaration takes effect differently from Chrome: the difference map shows where.

The example’s page

border-shape:inset(20px) margin-box

renders differently
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 Chrome12,096
The same, on the page without the declaration0
Largest difference on one colour channel204 of 255
The same, on the page without the declaration0 of 255

The declaration takes effect differently from Chrome: the difference map shows where.

The example’s page

border-shape:circle(60px)

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 Chrome92
The same, on the page without the declaration0
Largest difference on one colour channel3 of 255
The same, on the page without the declaration0 of 255

What differs is anti-aliasing only.

The example’s page

border-shape:inset(20px) content-box, border-shape:inset(20px) fill-box

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

border-shape:inset(20px) padding-box

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

border-shape:polygon(0 0, 100% 0, 50% 100%)

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 Chrome202
The same, on the page without the declaration0
Largest difference on one colour channel3 of 255
The same, on the page without the declaration0 of 255

What differs is anti-aliasing only.

The example’s page

border-shape:inset(20px), border-shape:inset(20px) half-border-box

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

border-shape:inset(20px) border-box, border-shape:inset(20px) stroke-box, border-shape:inset(20px) view-box

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 13 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
inset(20px)
same effect as Chrome
circle(60px)
below the visible threshold
ellipse(80px 40px)
renders differently
polygon(0 0, 100% 0, 50% 100%)
below the visible threshold
inset(20px) content-box
same effect as Chrome
inset(20px) padding-box
same effect as Chrome
inset(20px) border-box
same effect as Chrome
inset(20px) margin-box
renders differently
inset(20px) half-border-box
same effect as Chrome
inset(20px) fill-box
same effect as Chrome
inset(20px) stroke-box
same effect as Chrome
inset(20px) view-box
same effect as Chrome
nonenot 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