Skip to content

Commit

Permalink
Merge pull request #221 from SukkaW/fix-194
Browse files Browse the repository at this point in the history
Fix #194
  • Loading branch information
robinweser authored Aug 31, 2022
2 parents 9ac3c15 + 9ff10df commit 785bd5e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
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

0 comments on commit 785bd5e

Please sign in to comment.