diegomura / react-pdf

📄 Create PDF files using React
https://react-pdf.org
MIT License
14.42k stars 1.14k forks source link

Styling: border-shortcut only working with certain order of arguments #1768

Open dyedwiper opened 2 years ago

dyedwiper commented 2 years ago

Describe the bug The border-shortcut (and borderTop etc. respectively) is only working when the arguments are in the following order: width, style, color. This contradicts the general CSS spec: https://developer.mozilla.org/en-US/docs/Web/CSS/border

Certain orders do not apply the styles, other orders lead to an error. See https://codesandbox.io/s/admiring-sun-epi6q1. wrongOrderBorder2 in the Sandbox leads to an error for example.

Desktop (please complete the following information):

spiritanand commented 1 year ago

Hi Is this issue active? Can you assign it to me?