mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
Merge pull request #1743 from seven-phases-max/property-merge-fix
Interleaved property merge fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,3 +20,7 @@
|
||||
.test6 {
|
||||
transform: scale(2, 4);
|
||||
}
|
||||
.test-interleaved {
|
||||
transform: t1, t2, t3;
|
||||
background: b1, b2, b3;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user