From a11bd267bed99cab73a4005e4e6cea79678b7744 Mon Sep 17 00:00:00 2001 From: Louie Bao Date: Wed, 26 Jul 2017 00:21:16 +0800 Subject: [PATCH] Add support css unit 'rem' --- lib/validator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/validator.js b/lib/validator.js index 645892d..1ccede4 100644 --- a/lib/validator.js +++ b/lib/validator.js @@ -172,7 +172,8 @@ var EXTENDED_COLOR_KEYWORDS = { } var LENGTH_REGEXP = /^[-+]?\d*\.?\d+(\S*)$/ -var SUPPORT_CSS_UNIT = ['pt', 'wx'] +// 'rem' is supported since weex-vue-render@0.11 +var SUPPORT_CSS_UNIT = ['rem', 'pt', 'wx'] /** * the values below is valid