-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
122 additions
and
0 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
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
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,17 @@ | ||
// external tooling | ||
import test from "ava" | ||
|
||
// internal tooling | ||
import checkFixture from "./helpers/check-fixture" | ||
|
||
test("should filter all imported stylesheets", checkFixture, "filter-all", { | ||
filter: () => false, | ||
}) | ||
|
||
test("should filter some stylesheets", checkFixture, "filter-some", { | ||
filter: url => url !== "foobar.css", | ||
}) | ||
|
||
test("shouldn't accept ignored stylesheets", checkFixture, "filter-ignore", { | ||
filter: () => true, | ||
}) |
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,12 @@ | ||
@import "foo.css"; | ||
@import "foo.css" screen; | ||
@import 'bar.css'; | ||
@import 'bar.css' screen; | ||
@import url(baz.css); | ||
@import url(baz.css) screen; | ||
@import url("foobar.css"); | ||
@import url("foobar.css") screen and (min-width: 25em); | ||
@import url('foobarbaz.css'); | ||
@import url('foobarbaz.css') print, screen and (min-width: 25em); | ||
|
||
content{} |
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,11 @@ | ||
@import "foo.css"; | ||
@import "foo.css" screen; | ||
@import 'bar.css'; | ||
@import 'bar.css' screen; | ||
@import url(baz.css); | ||
@import url(baz.css) screen; | ||
@import url("foobar.css"); | ||
@import url("foobar.css") screen and (min-width: 25em); | ||
@import url('foobarbaz.css'); | ||
@import url('foobarbaz.css') print, screen and (min-width: 25em); | ||
content{} |
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,15 @@ | ||
@import "ignore.css" (min-width: 25em); | ||
@import "http://css"; | ||
@import "https://css"; | ||
@import 'http://css'; | ||
@import 'https://css'; | ||
@import url(http://css); | ||
@import url(https://css); | ||
@import url("http://css"); | ||
@import url("https://css"); | ||
@import url('http://css'); | ||
@import url('https://css'); | ||
@import url("//css"); | ||
@import url('//css'); | ||
@import url(//css); | ||
content{} |
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,19 @@ | ||
@import "http://css" (min-width: 25em); | ||
@import "http://css-screen" (min-width: 25em) and screen; | ||
@import "http://css"; | ||
@import "https://css"; | ||
@import 'http://css'; | ||
@import 'https://css'; | ||
@import url(http://css); | ||
@import url(https://css); | ||
@import url("http://css"); | ||
@import url("https://css"); | ||
@import url('http://css'); | ||
@import url('https://css'); | ||
@import url("//css"); | ||
@import url('//css'); | ||
@import url(//css); | ||
@media (min-width: 25em){ | ||
ignore{} | ||
} | ||
content{} |
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,12 @@ | ||
@import "foo.css"; | ||
@import "foo.css" screen; | ||
@import 'bar.css'; | ||
@import 'bar.css' screen; | ||
@import url(baz.css); | ||
@import url(baz.css) screen; | ||
@import url("foobar.css"); | ||
@import url("foobar.css") screen and (min-width: 25em); | ||
@import url('foobarbaz.css'); | ||
@import url('foobarbaz.css') print, screen and (min-width: 25em); | ||
|
||
content{} |
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,20 @@ | ||
|
||
@import url("foobar.css"); | ||
@import url("foobar.css") screen and (min-width: 25em); | ||
foo{} | ||
@media screen{ | ||
foo{} | ||
} | ||
bar{} | ||
@media screen{ | ||
bar{} | ||
} | ||
baz{} | ||
@media screen{ | ||
baz{} | ||
} | ||
foobarbaz{} | ||
@media print, screen and (min-width: 25em){ | ||
foobarbaz{} | ||
} | ||
content{} |