Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions modules/__tests__/createPrefixer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@ describe('Static Prefixer', () => {
})

describe('Resolving special plugins', () => {
it('should prefix background-clips correctly (issue #194)', () => {
const input = { backgroundClip: 'text' }
const output = {
MozBackgroundClip: 'text',
WebkitBackgroundClip: 'text',
backgroundClip: 'text'
}
expect(prefix(input)).toEqual(output)
expect(prefix(input)).toEqual(output)
})

it('should prefix calc expressions', () => {
const input = { width: 'calc(30px)' }
const output = {
Expand Down
2 changes: 0 additions & 2 deletions modules/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import createPrefixer from './createPrefixer'

import data from './data'

import backgroundClip from './plugins/backgroundClip'
import cursor from './plugins/cursor'
import crossFade from './plugins/crossFade'
import filter from './plugins/filter'
Expand All @@ -17,7 +16,6 @@ import sizing from './plugins/sizing'
import transition from './plugins/transition'

const plugins = [
backgroundClip,
crossFade,
cursor,
filter,
Expand Down
10 changes: 0 additions & 10 deletions modules/plugins/backgroundClip.js

This file was deleted.

2 changes: 0 additions & 2 deletions modules/plugins/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import backgroundClip from './backgroundClip'
import calc from './calc'
import cursor from './cursor'
import crossFade from './crossFade'
Expand All @@ -15,7 +14,6 @@ import sizing from './sizing'
import transition from './transition'

export default [
backgroundClip,
calc,
crossFade,
cursor,
Expand Down