From 9b03f6df88a8d9dbda3f7893cdd84e3a3c70da17 Mon Sep 17 00:00:00 2001 From: Mr21 Date: Wed, 4 Feb 2015 14:10:14 +0100 Subject: CSS: Support relative adjustment in any applicable unit Fixes gh-1711 Closes gh-2011 --- src/var/rcssNum.js | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/var/rcssNum.js (limited to 'src/var') diff --git a/src/var/rcssNum.js b/src/var/rcssNum.js new file mode 100644 index 000000000..2fc3938a5 --- /dev/null +++ b/src/var/rcssNum.js @@ -0,0 +1,7 @@ +define([ + "../var/pnum" +], function( pnum ) { + +return new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" ); + +}); -- cgit v1.2.3