main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
418 bytes
|
Line | |
---|
1 | import isPrefixedValue from 'css-in-js-utils/lib/isPrefixedValue';
|
---|
2 |
|
---|
3 | // http://caniuse.com/#feat=css-image-set
|
---|
4 | var prefixes = ['-webkit-', ''];
|
---|
5 |
|
---|
6 | export default function imageSet(property, value) {
|
---|
7 | if (typeof value === 'string' && !isPrefixedValue(value) && value.indexOf('image-set(') > -1) {
|
---|
8 | return prefixes.map(function (prefix) {
|
---|
9 | return value.replace(/image-set\(/g, prefix + 'image-set(');
|
---|
10 | });
|
---|
11 | }
|
---|
12 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.