mirror of
https://github.com/less/less.js.git
synced 2026-01-22 21:58:14 -05:00
(test) tests for '!important' mixins
This commit is contained in:
17
test/css/mixins-important.css
Normal file
17
test/css/mixins-important.css
Normal 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;
|
||||
}
|
||||
18
test/less/mixins-important.less
Normal file
18
test/less/mixins-important.less
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user