From 609336cd4a900f4f32f1a5a259f71f645964784d Mon Sep 17 00:00:00 2001 From: Diego Muracciole Date: Mon, 18 Nov 2024 09:49:23 +0100 Subject: [PATCH] feat: rem border widths (#2960) --- packages/stylesheet/src/expand/borders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/stylesheet/src/expand/borders.js b/packages/stylesheet/src/expand/borders.js index da3c531d7..928463880 100644 --- a/packages/stylesheet/src/expand/borders.js +++ b/packages/stylesheet/src/expand/borders.js @@ -1,5 +1,5 @@ const BORDER_SHORTHAND_REGEX = - /(-?\d+(\.\d+)?(px|in|mm|cm|pt|vw|vh|px)?)\s(\S+)\s(.+)/; + /(-?\d+(\.\d+)?(in|mm|cm|pt|vw|vh|px|rem)?)\s(\S+)\s(.+)/; const matchBorderShorthand = (value) => value.match(BORDER_SHORTHAND_REGEX) || [];