chartjs / chartjs/Chart.js

Webkit border drawing bug

Open
#10,477 2 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Expected behavior

When drawing bars with one border being 0px, no border should be visible.

### Current behavior

When drawing bars without a border, on webkit a 1px line sometimes occurs.
![Bildschirmfoto 2022-07-13 um 11 10 06](https://user-images.githubusercontent.com/329487/178696523-db3dbdcc-c4d7-4591-921f-f7742513964d.jpg)

### Reproducible sample

https://codepen.io/Smod1/pen/BarLVYj

### Optional extra steps/info to reproduce

Only happens in Safari (15.3, Mac). Chrome, FF, Edge are fine.
Bug is visible when resizing the chart window as a small red line as top-border.

Note i setted borderSkipped = true. Same behaviour without borderSkipped.

### Possible solution

Guess it's a miss calculation.

### Context

_No response_

### chart.js version

v3.5 (latest)

### Browser name and version

Safari Mac

### Link to your project

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.