Merge pull request #1743 from seven-phases-max/property-merge-fix

Interleaved property merge fix
This commit is contained in:
Luke Page
2013-12-19 22:42:36 -08:00
3 changed files with 15 additions and 3 deletions

View File

@@ -189,12 +189,12 @@
rule.important ? "!" : ""].join(",");
if (!groups[key]) {
parts = groups[key] = [];
groups[key] = [];
} else {
rules.splice(i--, 1);
}
parts.push(rule);
groups[key].push(rule);
}
}

View File

@@ -20,3 +20,7 @@
.test6 {
transform: scale(2, 4);
}
.test-interleaved {
transform: t1, t2, t3;
background: b1, b2, b3;
}

View File

@@ -36,7 +36,7 @@
.first-background();
}
.test4 {
// Wont merge values from sources that merked as !important, for backwards compatibility with css
// Wont merge values from sources that merked as !important, for backwards compatibility with css
.first-transform();
.fifth-transform();
}
@@ -48,4 +48,12 @@
.test6 {
// Ignores !merge if no peers found
.second-transform();
}
.test-interleaved {
transform+: t1;
background+: b1;
transform+: t2;
background+: b2, b3;
transform+: t3;
}