Skip to content
Skip the list of specifications

border-style

matches Chrome on some values: 7 of 10 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 3 that do not: border-style:groove, border-style:ridge, border-style:double. They come first below, each with its difference map.

What the specification says

Initial valuesee individual properties
Applies tosee individual properties
Inheritedsee individual properties
Percentagessee individual properties
Computed valuesee individual properties
Syntax<'border-top-style'>{1,4}

The definition in css-borders-4

The measurements

10 examples: three render differently and come first and seven 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-style:groove

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 Chrome41
The same, on the page without the declaration0
Largest difference on one colour channel27 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-style:ridge

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 Chrome41
The same, on the page without the declaration0
Largest difference on one colour channel27 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-style:double

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 Chrome38
The same, on the page without the declaration0
Largest difference on one colour channel10 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-style:hidden, border-style:none

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-style:inset

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 Chrome14
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-style:outset

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

What differs is anti-aliasing only.

The example’s page

border-style:dotted

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 Chrome423
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-style:dashed

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 Chrome1
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-style:solid

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

ValueMeasured
hidden
same effect as Chrome
dotted
below the visible threshold
dashed
below the visible threshold
solid
same effect as Chrome
double
renders differently
groove
renders differently
ridge
renders differently
inset
below the visible threshold
outset
below the visible threshold
none
same effect as Chrome

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