Skip to content

Commit

Permalink
feat: add clip-path support (#409)
Browse files Browse the repository at this point in the history
* feat: add clip-path support

* add global values as arguments

* fix: add geometry-box values

* add none
  • Loading branch information
redonkulus authored Jun 21, 2022
1 parent 707966d commit b8fcfd3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
==================================================================
*/
Expand Down

0 comments on commit b8fcfd3

Please sign in to comment.