From b8fcfd303046d013526c1b1e091c1e62faf6d5b1 Mon Sep 17 00:00:00 2001 From: Seth Bertalotto Date: Tue, 21 Jun 2022 14:31:29 -0700 Subject: [PATCH] feat: add clip-path support (#409) * feat: add clip-path support * add global values as arguments * fix: add geometry-box values * add none --- src/rules.js | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/rules.js b/src/rules.js index df91b110..c303398c 100644 --- a/src/rules.js +++ b/src/rules.js @@ -876,6 +876,34 @@ module.exports = [ }, /** ================================================================== + CLIP PATH + ================================================================== + */ + { + 'type': 'pattern', + 'name': 'Clip path', + 'matcher': 'Cp', + 'allowParamToValue': false, + 'styles': { + 'clip-path': '$0' + }, + 'arguments': [{ + 'bb': 'border-box', + 'cb': 'content-box', + 'fb': 'fill-box', + 'mb': 'margin-box', + 'n': 'none', + 'pb': 'padding-box', + 'ini': 'initial', + 'r': 'revert', + 'rl': 'revert-layer', + 'sb': 'stroke-box', + 'u': 'unset', + 'vb': 'view-box' + }] + }, + /** + ================================================================== COLOR ================================================================== */