-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug/issue 763 refine import rule handling (#999)
* setting up test cases for additional import rule examples * support non relative @import url rule * support arbitrary @ rules * @supports and single declaration handling * test for more @ rules * update related specs
- Loading branch information
1 parent
c781ddb
commit a0805ee
Showing
10 changed files
with
89 additions
and
30 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
42 changes: 28 additions & 14 deletions
42
packages/cli/test/cases/build.config.optimization-default/fixtures/expected.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 |
---|---|---|
@@ -1,43 +1,57 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
:root,:host{--primary-color:#16f;--secondary-color:#ff7;} | ||
|
||
@font-face {font-family:'Source Sans Pro';font-style:normal;font-weight:400;font-display:swap;src:local('Source Sans Pro Regular'),local('SourceSansPro-Regular'),url('/assets/fonts/source-sans-pro-v13-latin-regular.woff2')format('woff2'),url('/assets/fonts/source-sans-pro-v13-latin-regular.woff')format('woff'),url('/assets/fonts/source-sans-pro-v13-latin-regular.ttf')format('truetype');} | ||
|
||
@import url('https://fonts.googleapis.com/css?family=Raleway&display=swap'); | ||
|
||
*{margin:0;padding:0;font-family:'Comic Sans',sans-serif;} | ||
|
||
body{background-color:green;} | ||
body{background-color:green} | ||
|
||
h1,h2{color:var(--primary-color);border:0.5px solid #dddde1;} | ||
|
||
#foo,.bar{color:var(--secondary-color);} | ||
#foo,.bar{color:var(--secondary-color)} | ||
|
||
div>p{display:none;} | ||
div>p{display:none} | ||
|
||
a[title]{color:purple;} | ||
a[title]{color:purple} | ||
|
||
@media screen and (max-width:992px){body{background-color:blue;}} | ||
@media screen and (max-width:992px){body{background-color:blue}} | ||
|
||
p::first-line{color:blue;width:100%!important;} | ||
|
||
pre[class*='language-']{color:#ccc;background:none;} | ||
|
||
dd:only-of-type{background-color:bisque;} | ||
dd:only-of-type{background-color:bisque} | ||
|
||
:not(pre)>code[class*='language-']{background:#2d2d2d;} | ||
:not(pre)>code[class*='language-']{background:#2d2d2d} | ||
|
||
li:nth-child(-n+3){border:2px solid orange;margin-bottom:1px;} | ||
|
||
li:nth-child(even){background-color:lightyellow;} | ||
li:nth-child(even){background-color:lightyellow} | ||
|
||
li:nth-last-child(5n){border:2px solid orange;margin-top:1px;} | ||
|
||
dd:nth-last-of-type(odd){border:2px solid orange;} | ||
dd:nth-last-of-type(odd){border:2px solid orange} | ||
|
||
p:nth-of-type(2n+1){color:red} | ||
|
||
*:lang(en-US){outline:2px solid deeppink} | ||
|
||
p~ul{font-weight:bold} | ||
|
||
a[href*='greenwood'],a[href$='.pdf']{color:orange} | ||
|
||
p:nth-of-type(2n+1){color:red;} | ||
[title~=flower],a[href^='https'],[lang|=en]{text-decoration:underline} | ||
|
||
*:lang(en-US){outline:2px solid deeppink;} | ||
@keyframes slidein{from{transform:translateX(0%)}to{transform:translateX(100%)}} | ||
|
||
p~ul{font-weight:bold;} | ||
@supports (display:flex){.flex-container>*{text-shadow:0px 0px 2px blue;float:none;}.flex-container{display:flex}} | ||
|
||
a[href*='greenwood'],a[href$='.pdf']{color:orange;} | ||
@page {size:8.5in 9in;margin-top:4in;} | ||
|
||
[title~=flower],a[href^='https'],[lang|=en]{text-decoration:underline;} | ||
@font-feature-values Font One{@styleset {nice-style:12}} |
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
7 changes: 6 additions & 1 deletion
7
packages/cli/test/cases/build.config.optimization-default/src/styles/theme.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 |
---|---|---|
@@ -1 +1,6 @@ | ||
@import url('../system/variables.css'); | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@import url('../system/variables.css'); | ||
@import url('https://fonts.googleapis.com/css?family=Raleway&display=swap'); |
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
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