Support percentage border-radius values (Fix #1154)

This commit is contained in:
MoyuScript
2017-08-04 20:41:36 +08:00
parent 0981a17c40
commit 2cb9a982d4
2 changed files with 17 additions and 18 deletions

View File

@ -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 => {