Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add postcss composes tests for edge cases
- Loading branch information
1 parent
fa1e7d2
commit d8b0420
Showing
7 changed files
with
141 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
packages/core/integration-tests/test/integration/postcss-composes/composes-5.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.composes5 { | ||
composes: intermediate from './mixins-intermediate.css'; | ||
border: 3px solid yellow; | ||
} |
4 changes: 4 additions & 0 deletions
4
packages/core/integration-tests/test/integration/postcss-composes/composes-6.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.composes6 { | ||
composes: test test-2 from './mixins.css'; | ||
border: 3px solid orangered; | ||
} |
5 changes: 5 additions & 0 deletions
5
packages/core/integration-tests/test/integration/postcss-composes/index4.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
var map5 = require('./composes-5.css'); | ||
|
||
module.exports = function () { | ||
return map5; | ||
}; |
5 changes: 5 additions & 0 deletions
5
packages/core/integration-tests/test/integration/postcss-composes/index5.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
var map6 = require('./composes-6.css'); | ||
|
||
module.exports = function () { | ||
return map6; | ||
}; |
4 changes: 4 additions & 0 deletions
4
packages/core/integration-tests/test/integration/postcss-composes/mixins-intermediate.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.intermediate { | ||
composes: test from './mixins.css'; | ||
height: 300px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,7 @@ | |
height: 100px; | ||
width: 100px; | ||
} | ||
|
||
.test-2 { | ||
background: red; | ||
} |