Skip to content

Commit e753a7e

Browse files
author
meri
committed
Created separate test case for #2162
1 parent ead3e29 commit e753a7e

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

test/css/import-reference-issues.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ show-all-content .something {
1919
was: included;
2020
shall-see: another property above;
2121
}
22+
call-mixin-with-import-by-reference-inside {
23+
the-only-property: nothing-below-this;
24+
}

test/less/import-reference-issues.less

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// * #1878 - extend inside referenced file should not extend outside selectors
55
// * #2716 - A file imported by reference and then normally - multiple imports should be independent
66
// * #1968 - When using an @import (reference), mixins that contain an & selector get added to the compiled output improperly
7-
// * #2162 - same as #1896
7+
// * #2162 - Cannot put import by reference inside of a mixin (also doubles #1896)
88

99
// #1878: extend inside referenced file should not extend outside selectors
1010
@import (reference) "import-reference-issues/global-scope-import.less";
@@ -40,3 +40,11 @@ show-all-content {
4040
@import "import-reference-issues/mixin-1968.less";
4141
@import (reference) "import-reference-issues/appender-reference-1968.less";
4242

43+
// #2162 - Cannot put import by reference inside of a mixin (also doubles #1896)
44+
.mixin-with-import-by-reference-inside() {
45+
the-only-property: nothing-below-this;
46+
@import (reference) "import-reference-issues/simple-ruleset-2162.less";
47+
}
48+
call-mixin-with-import-by-reference-inside {
49+
.mixin-with-import-by-reference-inside();
50+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ruleset {
2+
shall-be-invisible: less;
3+
}

0 commit comments

Comments
 (0)