Milos N.
Milos N.

Reputation: 4843

Why is CSS border different on Google Chrome?

why is border-style different on google chrome Version 84.0.4147.89 (Official Build) (64-bit) unlike Mozilla browser 79.0b9 (64-bit).

Here is a screenshot:

Google Chrome

enter image description here

Mozilla

enter image description here

Upvotes: 0

Views: 36

Answers (1)

abney317
abney317

Reputation: 8492

Unfortunately the border-style spec doesn't define how the spacing of the dashed borders should be done, so you end up with each browser implementing it a bit differently.

There is no control over the spacing of the dots and dashes, nor over the length of the dashes. Implementations are encouraged to choose a spacing that makes the corners symmetrical.

Upvotes: 1

Related Questions