Skip to content
Skip the list of specifications

border-spacing

matches Chrome on some values: 2 of 3 examples match Chrome

css-tables-3

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 one that does not: border-spacing:20px. It comes first below, with its difference map.

What the specification says

Initial value0px 0px
Applies totable grid boxes when border-collapse is separate
Inheritedyes
Percentagesn/a
Computed valuetwo absolute lengths
Syntax<length [0,∞]>{1,2}

The definition in css-tables-3

The measurements

3 examples: one renders differently and comes first and two 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-spacing:20px

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 Chrome1,462
The same, on the page without the declaration1,114
Largest difference on one colour channel255 of 255
The same, on the page without the declaration255 of 255

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

The example’s page

border-spacing:4px

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 Chrome1,004
The same, on the page without the declaration1,114
Largest difference on one colour channel255 of 255
The same, on the page without the declaration255 of 255

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

The example’s page

border-spacing:calc(20px + 4px)

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 Chrome1,062
The same, on the page without the declaration1,114
Largest difference on one colour channel255 of 255
The same, on the page without the declaration255 of 255

The pages differ by 1,062 pixels with the declaration and by 1,114 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 one branch, and it carries a measurement.

ValueMeasured
20px
4px
calc(20px + 4px)
renders differently
same effect as Chrome
same effect as Chrome

Tests that name this property

3 web-platform-tests link to this property’s definition. Few tests carry such a link, so a short list says little about the property.

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