opacity: true // rgba / hsla
},
properties: {
+ backgroundSizeMerging: true, // background-size to shorthand
iePrefixHack: false, // underscore / asterisk prefix hacks on IE
ieSuffixHack: false, // \9 suffix hacks on IE
merging: true // merging properties into one
opacity: false
},
properties: {
+ backgroundSizeMerging: false,
iePrefixHack: true,
ieSuffixHack: true,
merging: false
opacity: false
},
properties: {
+ backgroundSizeMerging: false,
iePrefixHack: true,
ieSuffixHack: true,
merging: false
'a{background:url(1.png) 0 0/28px 28px}'
]
}),
+ 'background size with -properties.backgroundSizeMerging': cssContext({
+ 'standard': 'div{background:url(image.png) no-repeat center;background-size:cover}',
+ 'prefix': 'div{-webkit-background:url(image.png) no-repeat center;-webkit-background-size:cover}'
+ }, { compatibility: '-properties.backgroundSizeMerging' }),
'multiple backgrounds': cssContext({
'should not produce longer values': 'p{background:no-repeat;background-position:100% 0,0 100%,100% 100%,50% 50%}'
}),
assert.isFalse(options.properties.iePrefixHack);
assert.isFalse(options.properties.ieSuffixHack);
assert.isFalse(options.selectors.ie7Hack);
+ assert.isTrue(options.properties.backgroundSizeMerging);
assert.isTrue(options.properties.merging);
assert.isTrue(options.units.rem);
assert.isTrue(options.colors.opacity);
assert.isFalse(options.properties.iePrefixHack);
assert.isFalse(options.properties.ieSuffixHack);
assert.isFalse(options.selectors.ie7Hack);
+ assert.isTrue(options.properties.backgroundSizeMerging);
assert.isTrue(options.properties.merging);
assert.isFalse(options.units.rem);
assert.isTrue(options.colors.opacity);
assert.isTrue(options.properties.iePrefixHack);
assert.isTrue(options.properties.ieSuffixHack);
assert.isFalse(options.selectors.ie7Hack);
+ assert.isFalse(options.properties.backgroundSizeMerging);
assert.isFalse(options.properties.merging);
assert.isFalse(options.units.rem);
assert.isFalse(options.colors.opacity);
assert.isTrue(options.properties.iePrefixHack);
assert.isTrue(options.properties.ieSuffixHack);
assert.isTrue(options.selectors.ie7Hack);
+ assert.isFalse(options.properties.backgroundSizeMerging);
assert.isFalse(options.properties.merging);
assert.isFalse(options.units.rem);
assert.isFalse(options.colors.opacity);
assert.isFalse(options.properties.iePrefixHack);
assert.isTrue(options.properties.ieSuffixHack);
assert.isFalse(options.selectors.ie7Hack);
+ assert.isFalse(options.properties.backgroundSizeMerging);
assert.isFalse(options.properties.merging);
assert.isFalse(options.units.rem);
assert.isTrue(options.colors.opacity);
assert.isTrue(options.properties.iePrefixHack);
assert.isFalse(options.properties.ieSuffixHack);
assert.isFalse(options.selectors.ie7Hack);
+ assert.isTrue(options.properties.backgroundSizeMerging);
assert.isTrue(options.properties.merging);
assert.isTrue(options.units.rem);
assert.isTrue(options.colors.opacity);
assert.isTrue(options.properties.iePrefixHack);
assert.isFalse(options.properties.ieSuffixHack);
assert.isFalse(options.selectors.ie7Hack);
+ assert.isTrue(options.properties.backgroundSizeMerging);
assert.isTrue(options.properties.merging);
assert.isFalse(options.units.rem);
assert.isTrue(options.colors.opacity);