mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Support percentage border-radius values (Fix #1154)
This commit is contained in:
@ -4,7 +4,7 @@ import Length from '../Length';
|
||||
|
||||
const SIDES = ['top-left', 'top-right', 'bottom-right', 'bottom-left'];
|
||||
|
||||
export type BorderRadius = Array<Length>;
|
||||
export type BorderRadius = [Length, Length];
|
||||
|
||||
export const parseBorderRadius = (style: CSSStyleDeclaration): Array<BorderRadius> => {
|
||||
return SIDES.map(side => {
|
||||
|
Reference in New Issue
Block a user