Skip to content

Commit

Permalink
test(postcss-merge-rules): test container queries
Browse files Browse the repository at this point in the history
Related to #1489, but the code snippet
in that issue is not valid CSS
  • Loading branch information
ludofischer committed Apr 23, 2023
1 parent fae4813 commit a580534
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/postcss-merge-rules/test/index.js
Expand Up @@ -150,6 +150,22 @@ test(
passthroughCSS('@media print{h1{display:block}}h1{color:red}')
);

test(
'should not merge across container queries',
passthroughCSS(
`@container (min-width: 200px) {
.mobile {
display: none;
}
}
@container (max-width: 100px) {
.notMobile {
display: none;
}
}`
)
);

test(
'should perform partial merging of selectors',
processCSS(
Expand Down Expand Up @@ -843,4 +859,5 @@ test(
'h1{color:#001;color:#002;color:#003}h2{color:#001;color:#002}'
)
);

test.run();

0 comments on commit a580534

Please sign in to comment.