Skip to content

Commit 9ff10df

Browse files
committed
Fix #194
1 parent 82154d0 commit 9ff10df

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed

modules/__tests__/createPrefixer-test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,17 @@ describe('Static Prefixer', () => {
7474
})
7575

7676
describe('Resolving special plugins', () => {
77+
it('should prefix background-clips correctly (issue #194)', () => {
78+
const input = { backgroundClip: 'text' }
79+
const output = {
80+
MozBackgroundClip: 'text',
81+
WebkitBackgroundClip: 'text',
82+
backgroundClip: 'text'
83+
}
84+
expect(prefix(input)).toEqual(output)
85+
expect(prefix(input)).toEqual(output)
86+
})
87+
7788
it('should prefix calc expressions', () => {
7889
const input = { width: 'calc(30px)' }
7990
const output = {

modules/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import createPrefixer from './createPrefixer'
22

33
import data from './data'
44

5-
import backgroundClip from './plugins/backgroundClip'
65
import cursor from './plugins/cursor'
76
import crossFade from './plugins/crossFade'
87
import filter from './plugins/filter'
@@ -17,7 +16,6 @@ import sizing from './plugins/sizing'
1716
import transition from './plugins/transition'
1817

1918
const plugins = [
20-
backgroundClip,
2119
crossFade,
2220
cursor,
2321
filter,

modules/plugins/backgroundClip.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

modules/plugins/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import backgroundClip from './backgroundClip'
21
import calc from './calc'
32
import cursor from './cursor'
43
import crossFade from './crossFade'
@@ -15,7 +14,6 @@ import sizing from './sizing'
1514
import transition from './transition'
1615

1716
export default [
18-
backgroundClip,
1917
calc,
2018
crossFade,
2119
cursor,

0 commit comments

Comments
 (0)