tsayen / dom-to-image

Generates an image from a DOM node using HTML5 canvas
Other
10.21k stars 1.68k forks source link

Right border works only if has a Left Border on Firefox #360

Open ClementGre opened 3 years ago

ClementGre commented 3 years ago

Use case: description, code

The right border is not visible only on Firefox.

jsfiddle (I added colors to borders here and the right border take the color of the left border).

image

When I use a left border with my right border, the right border is here, but it is not the case when there is no left border.

This is not a full conversely of the left and right border, since a left border didn't make a right border. image

BUT, on my personal project, with only a left border, I got a right border: This dom : image Become this image : image

Expected behavior

Having a right border on the generated image

Actual behavior (stack traces, console logs etc)

No right border. Only on Mozilla Firefox.

Library version

Reproduced with the jsfiddle prepared project

Browsers

nathalieroemer commented 3 years ago

Hi, I have the same issue! Did you come up with any solution or ideas about a workaround?

ClementGre commented 3 years ago

Hi, I didn't found a good workaround, I now use the same border on the left and on the right.