(test) tests for '!important' mixins

This commit is contained in:
Alexis Sellier
2012-01-05 21:53:48 +01:00
parent aab66a4d10
commit 66833352fd
2 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
.class {
border: 1;
boxer: 1;
border: 2 !important;
boxer: 2 !important;
border: 3;
boxer: 3;
border: 4 !important;
boxer: 4 !important;
border: 5;
boxer: 5;
border: 0 !important;
boxer: 0 !important;
border: 9 !important;
border: 9;
boxer: 9;
}

View File

@@ -0,0 +1,18 @@
.mixin (9) {
border: 9 !important;
}
.mixin (@a: 0) {
border: @a;
boxer: @a;
}
.class {
.mixin(1);
.mixin(2) !important;
.mixin(3);
.mixin(4) !important;
.mixin(5);
.mixin !important;
.mixin(9);
}