Skip to content

Commit

Permalink
fix(preset-wind): background-clip (#1040)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
laddish and antfu committed May 31, 2022
1 parent b74a76d commit 4eca33d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions packages/preset-wind/src/rules/background.ts
Expand Up @@ -103,10 +103,10 @@ export const backgroundStyles: Rule[] = [
['bg-scroll', { 'background-attachment': 'scroll' }],

// clips
['bg-clip-border', { '-webkit-background-clip': 'border-box', 'background-attachment': 'border-box' }],
['bg-clip-content', { '-webkit-background-clip': 'content-box', 'background-attachment': 'content-box' }],
['bg-clip-padding', { '-webkit-background-clip': 'padding-box', 'background-attachment': 'padding-box' }],
['bg-clip-text', { '-webkit-background-clip': 'text', 'background-attachment': 'text' }],
['bg-clip-border', { '-webkit-background-clip': 'border-box', 'background-clip': 'border-box' }],
['bg-clip-content', { '-webkit-background-clip': 'content-box', 'background-clip': 'content-box' }],
['bg-clip-padding', { '-webkit-background-clip': 'padding-box', 'background-clip': 'padding-box' }],
['bg-clip-text', { '-webkit-background-clip': 'text', 'background-clip': 'text' }],

// positions
// skip 1 & 2 letters shortcut
Expand Down
4 changes: 2 additions & 2 deletions test/__snapshots__/preset-wind.test.ts.snap
Expand Up @@ -252,8 +252,8 @@ exports[`preset-wind > targets 1`] = `
.bg-fixed{background-attachment:fixed;}
.bg-local{background-attachment:local;}
.bg-scroll{background-attachment:scroll;}
.bg-clip-border{-webkit-background-clip:border-box;background-attachment:border-box;}
.bg-clip-text{-webkit-background-clip:text;background-attachment:text;}
.bg-clip-border{-webkit-background-clip:border-box;background-clip:border-box;}
.bg-clip-text{-webkit-background-clip:text;background-clip:text;}
.bg-bottom{background-position:bottom;}
.bg-right-bottom{background-position:right bottom;}
.bg-no-repeat{background-repeat:no-repeat;}
Expand Down

0 comments on commit 4eca33d

Please sign in to comment.