-
-
Notifications
You must be signed in to change notification settings - Fork 389
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: added
@media
at-rules test (#818)
- Loading branch information
1 parent
f813b4c
commit 1527b06
Showing
31 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,3 @@ | ||
body { | ||
font-size: 24px; | ||
} |
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,3 @@ | ||
body { | ||
font-size: 32px; | ||
} |
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,3 @@ | ||
body { | ||
font-size: 64px; | ||
} |
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,3 @@ | ||
body { | ||
font-size: 128px; | ||
} |
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,3 @@ | ||
body { | ||
font-size: 256px; | ||
} |
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,40 @@ | ||
body { | ||
font-size: 24px; | ||
} | ||
|
||
@media screen and (orientation: landscape) { | ||
body { | ||
font-size: 32px; | ||
} | ||
|
||
} | ||
/*@import url("./c.css") supports(display: flex);*/ | ||
/*@import url("./d.css") supports(display: flex) screen and (min-width: 400px);*/ | ||
/*@import url("./e.css") supports( display : flex ) screen and ( min-width : 400px ) ;*/ | ||
/*@import url("./f.css") supports(not (display: flex));*/ | ||
/*@import url("./g.css") SUPPORTS(NOT (DISPLAY: FLEX));*/ | ||
|
||
div { | ||
color: blue; | ||
} | ||
|
||
@media { | ||
div { | ||
color: red; | ||
} | ||
} | ||
|
||
@media screen and (min-width: 900px) { | ||
article { | ||
padding: 1rem 3rem; | ||
} | ||
} | ||
|
||
@supports (display: flex) { | ||
@media screen and (min-width: 900px) { | ||
article { | ||
display: flex; | ||
} | ||
} | ||
} | ||
|
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,3 @@ | ||
body { | ||
font-size: 512px; | ||
} |
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,3 @@ | ||
body { | ||
font-size: 1024px; | ||
} |
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 @@ | ||
import "./style.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,31 @@ | ||
@import url("./a.css"); | ||
@import url("./b.css") screen and (orientation: landscape); | ||
/*@import url("./c.css") supports(display: flex);*/ | ||
/*@import url("./d.css") supports(display: flex) screen and (min-width: 400px);*/ | ||
/*@import url("./e.css") supports( display : flex ) screen and ( min-width : 400px ) ;*/ | ||
/*@import url("./f.css") supports(not (display: flex));*/ | ||
/*@import url("./g.css") SUPPORTS(NOT (DISPLAY: FLEX));*/ | ||
|
||
div { | ||
color: blue; | ||
} | ||
|
||
@media { | ||
div { | ||
color: red; | ||
} | ||
} | ||
|
||
@media screen and (min-width: 900px) { | ||
article { | ||
padding: 1rem 3rem; | ||
} | ||
} | ||
|
||
@supports (display: flex) { | ||
@media screen and (min-width: 900px) { | ||
article { | ||
display: flex; | ||
} | ||
} | ||
} |
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,25 @@ | ||
import Self from "../../../src"; | ||
|
||
module.exports = { | ||
entry: "./index.js", | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.css$/, | ||
use: [ | ||
{ | ||
loader: Self.loader, | ||
}, | ||
{ | ||
loader: "css-loader", | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
plugins: [ | ||
new Self({ | ||
filename: "[name].css", | ||
}), | ||
], | ||
}; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.