test: more

This commit is contained in:
alexander.akait 2023-04-25 19:51:08 +03:00
parent bbfa58828e
commit c3781d2b9d
3 changed files with 16 additions and 125 deletions

View File

@ -119,135 +119,21 @@ body {
background: black;
}
body {
background: green;
}
@layer (base) {
body {
background: green;
}
}
body {
background: red;
}
head{--webpack-main:\\\\.\\\\/print\\\\.css\\\\?foo\\\\=1,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=2,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=3,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=4,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=5,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=6,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=7,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=8,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=9,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=10,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=11,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=12,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=13,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=14,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=15,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=16,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=17,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=18,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=19,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=20,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=21,\\\\.\\\\/style\\\\.css;}",
"body {
background: black;
}
body {
background: black;
}
@layer (default) {
body {
background: black;
}
}
@layer (default) {
body {
background: black;
}
}
@supports (display: flex) {
body {
background: black;
}
}
@supports (display: flex) {
body {
background: black;
}
}
@media screen and (min-width: 400px) {
body {
background: black;
}
}
@media screen and (min-width: 400px) {
body {
background: black;
}
}
@layer (default) {
@supports (display: flex) {
body {
background: black;
}
}}
@layer (default) {
@media screen and (min-width: 400px) {
body {
background: black;
}
}}
@supports (display: flex) {
@media screen and (min-width: 400px) {
body {
background: black;
}
}}
@layer (default) {
@supports (display: flex) {
@media screen and (min-width: 400px) {
body {
background: black;
}
}}}
@layer (default) {
@supports (display: flex) {
@media screen and (min-width: 400px) {
body {
background: black;
}
}}}
@layer (default) {
@supports (display: flex) {
@media screen and (min-width: 400px) {
body {
background: black;
}
}}}
@layer (default) {
@supports (display: flex) {
@media screen and (min-width: 400px) {
body {
background: black;
}
}}}
@layer (default) {
@supports (background: url(./img.png)) {
@media screen and (min-width: 400px) {
body {
background: black;
}
}}}
@layer (default) {
@supports (background: url(\\"./img.png\\")) {
@media screen and (min-width: 400px) {
body {
background: black;
}
}}}
@media screen {
body {
background: black;
}
}
@media screen {
body {
background: black;
}
}
@media screen {
body {
background: black;
}
}
body {
background: black;
}
body {
background: red;
}
head{--webpack-main:\\\\.\\\\/print\\\\.css\\\\?foo\\\\=1,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=2,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=3,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=4,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=5,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=6,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=7,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=8,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=9,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=10,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=11,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=12,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=13,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=14,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=15,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=16,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=17,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=18,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=19,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=20,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=21,\\\\.\\\\/style\\\\.css;}",
head{--webpack-main:\\\\.\\\\/print\\\\.css\\\\?foo\\\\=1,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=2,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=3,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=4,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=5,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=6,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=7,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=8,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=9,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=10,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=11,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=12,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=13,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=14,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=15,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=16,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=17,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=18,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=19,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=20,\\\\.\\\\/print\\\\.css\\\\?foo\\\\=21,\\\\.\\\\/imported\\\\.css\\\\?2fc7,\\\\.\\\\/imported\\\\.css\\\\?8e23,\\\\.\\\\/style\\\\.css;}",
]
`;

View File

@ -4,7 +4,8 @@ it("should compile", done => {
const links = document.getElementsByTagName("link");
const css = [];
for (const link of links) {
// Skip first because import it by default
for (const link of links.slice(1)) {
css.push(link.sheet.css);
}

View File

@ -23,6 +23,10 @@
@import "print.css?foo=20" screen ;
@import "print.css?foo=21" ;
/* Has the same URL */
@import "imported.css";
@import "imported.css" layer(base);
body {
background: red;
}