diegomura / diegomura/react-pdf
Styling: border-shortcut only working with certain order of arguments
Open
bug
good-first-issue
- Dominant language
- TypeScript
- Stars
- 16.8k
- Forks
- 1.3k
- Avg merge
- 5h 6m
- Merged PRs (30d)
- 52
Description
**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):**
- Browser: Chrome
- React-pdf version: 2.1.1
Contributor guide
Assessment
This issue has not been assessed yet.