file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
crates/swc_css_codegen/tests/fixture/selectors/pseudo-element/output.css | CSS | ::before {
color: red;
}
::slotted(*) {
color: red;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/selectors/pseudo-element/output.min.css | CSS | ::before{color:red}::slotted(*){color:red}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/selectors/type/input.css | CSS | *|* {}
foo|h1 {}
foo|* {}
|h1 {}
*|h1 {}
h1 {}
BODY {}
HTML {}
TD {}
TEMPLATE {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/selectors/type/output.css | CSS | *|* {}
foo|h1 {}
foo|* {}
|h1 {}
*|h1 {}
h1 {}
BODY {}
HTML {}
TD {}
TEMPLATE {}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/selectors/type/output.min.css | CSS | *|*{}foo|h1{}foo|*{}|h1{}*|h1{}h1{}body{}html{}td{}template{}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/style-blocks-contents/basic-1/input.css | CSS | div {
display: block;
width: 200px;
margin: 20px;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/style-blocks-contents/basic-1/output.css | CSS | div {
display: block;
width: 200px;
margin: 20px;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/style-blocks-contents/basic-1/output.min.css | CSS | div{display:block;width:200px;margin:20px}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/style-blocks-contents/basic/input.css | CSS | .foo { display: grid; }
.foo {
display: grid;
@media (orientation: landscape) {
grid-auto-flow: column;
}
}
.foo {
display: grid;
@media (orientation: landscape) {
grid-auto-flow: column;
@media (min-inline-size > 1024px) {
max-inline-size: 1024px;
}
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/style-blocks-contents/basic/output.css | CSS | .foo {
display: grid;
}
.foo {
display: grid;
@media (orientation: landscape) {
grid-auto-flow: column;
}
}
.foo {
display: grid;
@media (orientation: landscape) {
grid-auto-flow: column;
@media (min-inline-size > 1024px) {
max-inline-size: 1024px;
}
}
}
@media (orientation: landscap... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/style-blocks-contents/basic/output.min.css | CSS | .foo{display:grid}.foo{display:grid;@media(orientation:landscape){grid-auto-flow:column}}.foo{display:grid;@media(orientation:landscape){grid-auto-flow:column;@media(min-inline-size>1024px){max-inline-size:1024px}}}@media(orientation:landscape){&{grid-auto-flow:column}}.foo{color:red;@media(min-width:480px){& h1,& h2{c... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/style-blocks-contents/hacks/input.css | CSS | /* Android */
.selector:not(*:root) {}
@media screen and (min-width:0\0) {}
/* Chrome */
.selector:not(*:root) {}
@supports (-webkit-appearance:none) {}
.selector { (;property: value;); }
.selector { [;property: value;]; }
@media \\0 screen {}
@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolutio... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/style-blocks-contents/hacks/output.css | CSS | .selector:not(*:root) {}
@media screen and (min-width: 0\0) {}
.selector:not(*:root) {}
@supports (-webkit-appearance: none) {}
.selector {
(;property: value;);}
.selector {
[;property: value;];}
@media \\0 screen {}
@media all and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: .001dpcm) {
.selector {}
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/style-blocks-contents/hacks/output.min.css | CSS | .selector:not(*:root){}@media screen and (min-width:0\0){}.selector:not(*:root){}@supports(-webkit-appearance:none){}.selector{(;property: value;);}.selector{[;property: value;];}@media \\0 screen {}@media all and (-webkit-min-device-pixel-ratio:0)and (min-resolution:.001dpcm){.selector{}}body:empty .selector{}body:las... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/style-blocks-contents/recovery/input.css | CSS | a.invert {
margin: 0;
__ident__
border-radius: 7px;
color: white;
background: __ident__;
__ident__
__ident__
}
a {
test;
color: red;
}
a {
123
color: red;
}
a {
123;
color: red;
}
.class {
color: blue;
&.foo {
ident
color: green;
}... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/style-blocks-contents/recovery/output.css | CSS | a.invert {
margin: 0;
__ident__
border-radius: 7px;color: white;
background: __ident__;
__ident__
__ident__
}
a {
test;color: red;
}
a {
123
color: red;}
a {
123;color: red;
}
.class {
color: blue;
&.foo {
ident
color: green;}
@supports not (display: grid) {
float: right... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/style-blocks-contents/recovery/output.min.css | CSS | a.invert{margin:0;__ident__
border-radius: 7px;color:white;background:__ident__;__ident__
__ident__
}a{test;color:red}a{123
color: red;}a{123;color:red}.class{color:blue;&.foo{ident
color: green;}@supports not (display:grid){float:right;& .class{ident
color: red
}}}.class{color:blue... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/style-blocks-contents/simple-block/input.css | CSS | * { unknown: x (a+b) }
* { unknown: x (a-b) }
* { unknown: x (a,b) }
* { unknown: x [a,b] }
* { unknown: x {a,b} }
* { unknown: x ( a + b ) }
* { unknown: x ( a / b ) }
* { unknown: x ( a * b ) }
/** { unknown: x ( a - b ) }*/
* { unknown: x ( a , b ) }
a { b: c, d }
a { b: c, (d, e) }
a { b: c, d, e }
a { b: c, (d, e... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/style-blocks-contents/simple-block/output.css | CSS | * {
unknown: x (a+b);
}
* {
unknown: x (a-b);
}
* {
unknown: x (a,b);
}
* {
unknown: x [a , b];
}
* {
unknown: x {a,b};
}
* {
unknown: x ( a + b );
}
* {
unknown: x (a/b);
}
* {
unknown: x ( a * b );
}
* {
unknown: x (a,b);
}
a {
b: c, d;
}
a {
b: c, (d,e);
}
a {
b: c, d, e;
}
a {
b: c, (d,e),... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/style-blocks-contents/simple-block/output.min.css | CSS | *{unknown:x (a+b)}*{unknown:x (a-b)}*{unknown:x (a,b)}*{unknown:x[a , b]}*{unknown:x{a,b}}*{unknown:x ( a + b )}*{unknown:x (a/b)}*{unknown:x ( a * b )}*{unknown:x (a,b)}a{b:c,d}a{b:c,(d,e)}a{b:c,d,e}a{b:c,(d,e),f}a{grid-template-rows:[linename1 linename2]100px repeat(auto-fit,[linename1]300px)[linename3];grid-template... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/support-query/1/output.css | CSS | @supports (display: flex) {h1 {color: hotpink;}}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/color/function/input.css | CSS | div {
color: rgb(255, 255, 255);
color: hwb(1.5708rad 20% 10% / 0.7);
color: hsla(30, 100%, 50%, .3);
color: hsl(30, 100%, 50%);
color: rgb(214, 122, 127);
border: 4mm ridge rgba(170, 50, 220, .6);
border-color: red rgba(170, 50, 220, .6) green;
border-color: red yellow green hsla(60, 9... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/color/function/output.css | CSS | div {
color: rgb(255, 255, 255);
color: hwb(1.5708rad 20% 10% / 0.7);
color: hsla(30, 100%, 50%, .3);
color: hsl(30, 100%, 50%);
color: rgb(214, 122, 127);
border: 4mm ridge rgba(170, 50, 220, .6);
border-color: red rgba(170, 50, 220, .6) green;
border-color: red yellow green hsla(60, 90%, 50%, .8);
p... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/color/function/output.min.css | CSS | div{color:rgb(255,255,255);color:hwb(1.5708rad 20%10%/.7);color:hsla(30,100%,50%,.3);color:hsl(30,100%,50%);color:rgb(214,122,127);border:4mm ridge rgba(170,50,220,.6);border-color:red rgba(170,50,220,.6)green;border-color:red yellow green hsla(60,90%,50%,.8);prop:rgb(255,255,255)rgb(255,255,255)}.rgb-and-rgba{color:rg... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/color/hex-color/input.css | CSS | div {
color: #fff;
color: #ffffff;
color: #FFF;
color: #FFFFFF;
color: #dc143c;
color: #ff0000;
color: #ff0000ff;
color: #f09;
color: #ff0099;
color: #0f38;
color: #00ff3388;
color: #0a0a0a;
color: #0a0a0afa;
}
div {
background: url("starsolid.gif") #99f repeat-y... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/color/hex-color/output.css | CSS | div {
color: #fff;
color: #ffffff;
color: #FFF;
color: #FFFFFF;
color: #dc143c;
color: #ff0000;
color: #ff0000ff;
color: #f09;
color: #ff0099;
color: #0f38;
color: #00ff3388;
color: #0a0a0a;
color: #0a0a0afa;
}
div {
background: url("starsolid.gif") #99f repeat-y fixed;
background: url("st... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/color/hex-color/output.min.css | CSS | div{color:#fff;color:#fff;color:#FFF;color:#FFF;color:#dc143c;color:#f00;color:#f00;color:#f09;color:#f09;color:#0f38;color:#0f38;color:#0a0a0a;color:#0a0a0afa}div{background:url("starsolid.gif")#99f repeat-y fixed;background:url("starsolid.gif")repeat-y fixed#99f;background:url("starsolid.gif")repeat-y 12#99f}.foo{bor... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/comma/input.css | CSS | div {
box-shadow: 3px 3px red, -1em 0 0.4em olive;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/comma/output.css | CSS | div {
box-shadow: 3px 3px red, -1em 0 0.4em olive;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/comma/output.min.css | CSS | div{box-shadow:3px 3px red,-1em 0 .4em olive}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/dimension/input.css | CSS | div {
padding: 10px 10px;
border: 1px solid black;
transition: top 1s ease-out 0.5s;
text-shadow: 1px 1px 2px black, 0 0 1em red;
}
.fpp {
padding: __ident__px __ident__;
}
.class {
width: 0.00254cm;
}
.foo {
width: 100PX;
TRANSFORM: ROTATE(45DEG);
}
a {
width: 10e\30px;
widt... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/dimension/output.css | CSS | div {
padding: 10px 10px;
border: 1px solid black;
transition: top 1s ease-out 0.5s;
text-shadow: 1px 1px 2px black, 0 0 1em red;
}
.fpp {
padding: __ident__px __ident__;
}
.class {
width: 0.00254cm;
}
.foo {
width: 100PX;
TRANSFORM: ROTATE(45DEG);
}
a {
width: 10e\30px;
width: 10e\31px;
width: 10... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/dimension/output.min.css | CSS | div{padding:10px 10px;border:1px solid black;transition:top 1s ease-out.5s;text-shadow:1px 1px 2px black,0 0 1em red}.fpp{padding:__ident__px __ident__}.class{width:.00254cm}.foo{width:100px;transform:rotate(45deg)}a{width:10e\30px;width:10e\31px;width:10e\32px;width:10e\39px;width:10e\@px;width:10ae2px}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/function/basic/input.css | CSS | div {
transform: rotate(9deg) translate(0px,71px) scale(1.5);
box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
filter: drop-shadow(0.25rem 0 0.75rem #ef9035);
animation: 2s infinite alternate steps(10);
background-image: image-set("image.png" 1x, "image-2x.png" 2x,"image-print.png" 600dpi);
paddi... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/function/basic/output.css | CSS | div {
transform: rotate(9deg) translate(0px, 71px) scale(1.5);
box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.2);
filter: drop-shadow(0.25rem 0 0.75rem #ef9035);
animation: 2s infinite alternate steps(10);
background-image: image-set("image.png" 1x, "image-2x.png" 2x, "image-print.png" 600dpi);
padding: env(sa... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/function/basic/output.min.css | CSS | div{transform:rotate(9deg)translate(0px,71px)scale(1.5);box-shadow:2px 2px 2px 1px rgba(0,0,0,.2);filter:drop-shadow(.25rem 0 .75rem#ef9035);animation:2s infinite alternate steps(10);background-image:image-set("image.png"1x,"image-2x.png"2x,"image-print.png"600dpi);padding:env(safe-area-inset-top,20px)env(safe-area-ins... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/function/calc/input.css | CSS | main.jsx-4089915715{
display:-webkit-box;
display:-webkit-flex;
display:-moz-box;
display:-ms-flexbox;
display:flex;
-webkit-flex-direction:row;
-ms-flex-direction:row;
flex-direction:row;
-webkit-box-pack:justify;
-webkit-justify-content:space-between;
justify-content:space-... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/function/calc/output.css | CSS | main.jsx-4089915715 {
display: -webkit-box;
display: -webkit-flex;
display: -moz-box;
display: -ms-flexbox;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
justify-content: space-between;
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/function/calc/output.min.css | CSS | main.jsx-4089915715{display:-webkit-box;display:-webkit-flex;display:-moz-box;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;margin-bottom:var(--geist-gap-double)}div.jsx-4... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/ident/input.css | CSS | :root {
--fg-c\olor: blue;
--fg-\color-other: blue;
--Foo: blue;
}
.box {
back\ground-color: \rebeccap\urple;
back\ground-color: var(--fg-c\olor);
border-radius: 10px;
width: 100\p\x;
height: 100px;
}
.b\ox:hover {
animation-name: rotate\ rotate;
animation-duration: 0.7s;
}
@k... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/ident/output.css | CSS | :root {
--fg-color: blue;
--fg-\c olor-other: blue;
--Foo: blue;
}
.box {
background-color: rebeccapurple;
background-color: var(--fg-color);
border-radius: 10px;
width: 100px;
height: 100px;
}
.box:hover {
animation-name: rotate\ rotate;
animation-duration: 0.7s;
}
@keyframes rotate\ rotate {
0% ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/ident/output.min.css | CSS | :root{--fg-color:blue;--fg-\c olor-other:blue;--Foo:blue}.box{background-color:rebeccapurple;background-color:var(--fg-color);border-radius:10px;width:100px;height:100px}.box:hover{animation-name:rotate\ rotate;animation-duration:.7s}@keyframes rotate\ rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyfr... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/integer/input.css | CSS | .class {
column-count: 1;
column-count: 1000;
counter-increment: example-counter 0;
counter-increment: example-counter 1000;
grid-column: 1 / 3;
grid-row: 1 / 3;
z-index: 7;
z-index: 1000;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/integer/output.css | CSS | .class {
column-count: 1;
column-count: 1000;
counter-increment: example-counter 0;
counter-increment: example-counter 1000;
grid-column: 1/ 3;
grid-row: 1/ 3;
z-index: 7;
z-index: 1000;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/integer/output.min.css | CSS | .class{column-count:1;column-count:1000;counter-increment:example-counter 0;counter-increment:example-counter 1000;grid-column:1/3;grid-row:1/3;z-index:7;z-index:1000}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/keyword/input.css | CSS | div {
background: center / contain no-repeat url("../../media/examples/firefox-logo.svg"), #eee 35% url("../../media/examples/lizard.png");
border: medium dashed green;
}
div {
border: 0.5rem outset pink;
outline: 0.5rem solid khaki;
box-shadow: 0 0 0 2rem skyblue;
border-radius: 12px;
font... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/keyword/output.css | CSS | div {
background: center/ contain no-repeat url("../../media/examples/firefox-logo.svg"), #eee 35% url("../../media/examples/lizard.png");
border: medium dashed green;
}
div {
border: 0.5rem outset pink;
outline: 0.5rem solid khaki;
box-shadow: 0 0 0 2rem skyblue;
border-radius: 12px;
font: bold 1rem sans... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/keyword/output.min.css | CSS | div{background:center/contain no-repeat url("../../media/examples/firefox-logo.svg"),#eee 35%url("../../media/examples/lizard.png");border:medium dashed green}div{border:.5rem outset pink;outline:.5rem solid khaki;box-shadow:0 0 0 2rem skyblue;border-radius:12px;font:bold 1rem sans-serif;margin:2rem;padding:1rem;outlin... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/number/input.css | CSS | div {
line-height: 100;
margin: 20 30;
margin: 20 30px;
margin: 20px 30;
}
div {
property: 10;
property: +10;
property: -10;
property: 0.1;
property: +0.1;
property: -0.1;
property: -.1;
property: +.1;
property: 0;
property: 10;
property: .10;
property: 1... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/number/output.css | CSS | div {
line-height: 100;
margin: 20 30;
margin: 20 30px;
margin: 20px 30;
}
div {
property: 10;
property: 10;
property: -10;
property: 0.1;
property: +0.1;
property: -0.1;
property: -.1;
property: +.1;
property: 0;
property: 10;
property: .10;
property: 12.34;
property: 0.1;
property:... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/number/output.min.css | CSS | div{line-height:100;margin:20 30;margin:20 30px;margin:20px 30}div{property:10;property:10;property:-10;property:.1;property:.1;property:-.1;property:-.1;property:.1;property:0;property:10;property:.1;property:12.34;property:.1;property:1;property:0;property:0;property:-0;property:0;property:1.2;property:120;property:1... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/percentage/input.css | CSS | div {
padding: 100%20%;
margin: 100%20px;
background-position: 50% 50%, calc(50% + 20px) calc(50% + 20px);
margin:20px 100%;
}
div {
background: image-set(url("image.png") 1x) 100%;
background: 100% image-set(url("image.png") 1x);
}
div{
background:50% red;
}
div {
margin: 100% 20px 1... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/percentage/output.css | CSS | div {
padding: 100% 20%;
margin: 100% 20px;
background-position: 50% 50%, calc(50% + 20px) calc(50% + 20px);
margin: 20px 100%;
}
div {
background: image-set(url("image.png") 1x) 100%;
background: 100% image-set(url("image.png") 1x);
}
div {
background: 50% red;
}
div {
margin: 100% 20px 100% 40em;
}
di... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/percentage/output.min.css | CSS | div{padding:100%20%;margin:100%20px;background-position:50%50%,calc(50% + 20px)calc(50% + 20px);margin:20px 100%}div{background:image-set(url("image.png")1x)100%;background:100%image-set(url("image.png")1x)}div{background:50%red}div{margin:100%20px 100%40em}div{background:rgba(0,0,0,0)image-set(url("image.png")1x)repea... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/simple-block/square/input.css | CSS | #page {
display: grid;
width: 100%;
height: 200px;
grid-template: [header-left] "head head" 30px [header-right]
[main-left] "nav main" 1fr [main-right]
[footer-left] "nav foot" 30px [footer-right]
/ 120px 1fr;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/simple-block/square/output.css | CSS | #page {
display: grid;
width: 100%;
height: 200px;
grid-template: [header-left] "head head" 30px [header-right] [main-left] "nav main" 1fr [main-right] [footer-left] "nav foot" 30px [footer-right] / 120px 1fr;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/simple-block/square/output.min.css | CSS | #page{display:grid;width:100%;height:200px;grid-template:[header-left]"head head"30px[header-right][main-left]"nav main"1fr[main-right][footer-left]"nav foot"30px[footer-right]/120px 1fr}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/slash/input.css | CSS | div {
background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/slash/output.css | CSS | div {
background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 01... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/slash/output.min.css | CSS | div{background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.4... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/string/input.css | CSS | div {
content: '⬇';
content: "😀";
content: "\'test\'";
content: "\\'test\'";
content: "\\\\'test\'";
content: '"string" is string';
content: "'string' is string";
content: '\"string\" is string';
content: '\'string\' is string';
content: "\"string\" is string";
content: "\'... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/string/output.css | CSS | div {
content: '⬇';
content: "😀";
content: "\'test\'";
content: "\\'test\'";
content: "\\\\'test\'";
content: '"string" is string';
content: "'string' is string";
content: '\"string\" is string';
content: '\'string\' is string';
content: "\"string\" is string";
content: "\'string\' is string";
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/string/output.min.css | CSS | div{content:"⬇";content:"😀";content:"'test'";content:"\\'test'";content:"\\\\'test'";content:'"string" is string';content:"'string' is string";content:'"string" is string';content:"'string' is string";content:'"string" is string';content:"'string' is string";content:"'string' is \"string\"";content:"'string' is \"stri... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/url/1/input.css | CSS | div {
background: url(https://example.com/image.png);
background: URL(https://example.com/image.png);
background: \URL(https://example.com/image.png);
background: url("https://example.com/image.png");
background: url('https://example.com/image.png');
background: URL('https://example.com/image.pn... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/url/1/output.css | CSS | div {
background: url(https://example.com/image.png);
background: url(https://example.com/image.png);
background: url(https://example.com/image.png);
background: url("https://example.com/image.png");
background: url('https://example.com/image.png');
background: URL('https://example.com/image.png');
backgr... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/fixture/values/url/1/output.min.css | CSS | div{background:url(https://example.com/image.png);background:url(https://example.com/image.png);background:url(https://example.com/image.png);background:url("https://example.com/image.png");background:url("https://example.com/image.png");background:url("https://example.com/image.png");background:url("https://example.co... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/options/indent_type/input.css | CSS | a {
color: red;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/options/indent_type/output.css | CSS | a {
color: red;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/options/indent_width/input.css | CSS | a {
color: red;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/options/indent_width/output.css | CSS | a {
color: red;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/options/linefeed/crlf/input.css | CSS | a {
color: red;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/options/linefeed/crlf/output.css | CSS | a {
color: red;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/options/linefeed/lf/input.css | CSS | a {
color: red;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen/tests/options/linefeed/lf/output.css | CSS | a {
color: red;
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_codegen_macros/src/lib.rs | Rust | #![deny(clippy::all)]
extern crate proc_macro;
use quote::ToTokens;
use syn::{parse_quote, FnArg, ImplItemFn, Type, TypeReference};
#[proc_macro_attribute]
pub fn emitter(
_attr: proc_macro::TokenStream,
item: proc_macro::TokenStream,
) -> proc_macro::TokenStream {
let item: ImplItemFn = syn::parse(item)... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/src/compiler/color_alpha_parameter.rs | Rust | use swc_css_ast::{AbsoluteColorBase, ComponentValue, FunctionName};
use crate::compiler::Compiler;
impl Compiler {
pub(crate) fn process_color_alpha_parameter(&mut self, n: &mut AbsoluteColorBase) {
if let AbsoluteColorBase::Function(function) = n {
if let Some(ComponentValue::AlphaValue(_) | ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/src/compiler/color_hex_alpha.rs | Rust | use swc_common::DUMMY_SP;
use swc_css_ast::{
AbsoluteColorBase, AlphaValue, Color, ComponentValue, Delimiter, DelimiterValue, Function,
FunctionName, Ident, Number,
};
use swc_css_utils::{hex_to_rgba, round_alpha};
use crate::compiler::Compiler;
fn shorten_hex_color(value: &str) -> Option<&str> {
let leng... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/src/compiler/color_hwb.rs | Rust | use swc_css_ast::{
AbsoluteColorBase, AlphaValue, Angle, ComponentValue, Delimiter, DelimiterValue, FunctionName,
Hue, Ident, Number, Percentage,
};
use swc_css_utils::{angle_to_deg, hwb_to_rgb, to_rgb255};
use crate::compiler::Compiler;
impl Compiler {
fn get_hue(&self, hue: Option<&ComponentValue>) -> O... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/src/compiler/color_space_separated_parameters.rs | Rust | use std::mem::take;
use swc_common::DUMMY_SP;
use swc_css_ast::{
matches_eq_ignore_ascii_case, AbsoluteColorBase, ComponentValue, Delimiter, DelimiterValue,
};
use crate::compiler::Compiler;
impl Compiler {
pub(crate) fn process_color_space_separated_function_notation(
&mut self,
n: &mut Abso... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/src/compiler/custom_media.rs | Rust | use std::mem::take;
use swc_common::{util::take::Take, DUMMY_SP};
use swc_css_ast::{
AtRule, AtRuleName, AtRulePrelude, CustomMediaQuery, CustomMediaQueryMediaType, Ident,
MediaCondition, MediaConditionAllType, MediaConditionType, MediaConditionWithoutOr,
MediaConditionWithoutOrType, MediaFeatureBoolean, M... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/src/compiler/legacy_rgb_and_hsl.rs | Rust | use std::f64::consts::PI;
use swc_css_ast::{
matches_eq_ignore_ascii_case, AbsoluteColorBase, AlphaValue, Angle, ComponentValue, Number,
Percentage,
};
use swc_css_utils::{clamp_unit_f64, round_alpha};
use crate::compiler::Compiler;
impl Compiler {
pub(crate) fn process_rgb_and_hsl(&mut self, n: &mut Abs... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/src/compiler/media_query_ranges.rs | Rust | use swc_common::DUMMY_SP;
use swc_css_ast::{
Dimension, Ident, MediaFeature, MediaFeatureName, MediaFeaturePlain, MediaFeatureRange,
MediaFeatureRangeComparison, MediaFeatureRangeInterval, MediaFeatureValue,
};
use crate::compiler::Compiler;
impl Compiler {
pub(crate) fn get_legacy_media_feature(
... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/src/compiler/mod.rs | Rust | use swc_common::{util::take::Take, Spanned, DUMMY_SP};
use swc_css_ast::{
AbsoluteColorBase, AtRule, ComponentValue, CompoundSelector, MediaAnd, MediaCondition,
MediaConditionAllType, MediaConditionWithoutOr, MediaInParens, MediaQuery, Rule,
SupportsCondition,
};
use swc_css_visit::{VisitMut, VisitMutWith};... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/src/compiler/nesting.rs | Rust | use std::iter::once;
use swc_common::{util::take::Take, DUMMY_SP};
use swc_css_ast::*;
use crate::compiler::Compiler;
impl Compiler {
fn process_subclass_selectors(
&mut self,
prelude: &SelectorList,
subclass: &mut Vec<SubclassSelector>,
) {
for sel in subclass {
i... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/src/compiler/selector_not.rs | Rust | use swc_css_ast::{
CompoundSelector, PseudoClassSelector, PseudoClassSelectorChildren, SelectorList,
SubclassSelector,
};
use crate::compiler::Compiler;
impl Compiler {
pub(crate) fn process_selector_not(&mut self, n: &mut CompoundSelector) {
let has_not = n.subclass_selectors.iter().any(|n| match... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/src/feature.rs | Rust | use bitflags::bitflags;
bitflags! {
#[derive(Debug, Clone, Copy)]
pub struct Features: u64 {
const NESTING = 1 << 0;
const CUSTOM_MEDIA = 1 << 1;
const MEDIA_QUERY_RANGES = 1 << 2;
const COLOR_HEX_ALPHA = 1 << 3;
const COLOR_ALPHA_PARAMETER = 1 << 4;
const COLOR_... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/src/lib.rs | Rust | #![allow(clippy::boxed_local)]
#![allow(clippy::vec_box)]
pub mod compiler;
pub mod feature;
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/all/transform-lowercase/input.css | CSS | body {
transform: translateY(-50%);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/all/transform-lowercase/input.expect.css | CSS | body {
transform: translateY(-50%);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/color-hex-alpha/input.css | CSS | body {
background: #9d9 linear-gradient(#9823f8a9, #9823f834);
color: red;
color: #f00;
color: #f00f;
color: #FC0F;
color: #0000ff;
color: #0000ff00;
color: #FFFFFF;
content: "#f00";
content: "#0000ff00";
}
body {
background-color: #f3f3f3f3;
color: #0003;
}
#svg-elemen... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/color-hex-alpha/input.expect.css | CSS | body {
background: #9d9 linear-gradient(rgba(152, 35, 248, 0.663), rgba(152, 35, 248, 0.204));
color: red;
color: #f00;
color: #f00;
color: #fc0;
color: #0000ff;
color: rgba(0, 0, 255, 0);
color: #ffffff;
content: "#f00";
content: "#0000ff00";
}
body {
background-color: rgba(243, 243, 243, 0.953);... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/color-hwb/input.css | CSS | .test-hwb {
color: hwb(194 0% 0%); /* #00c3ff */
color: hwb(194 0% 0% / .5); /* #00c3ff with 50% opacity */
color: hwb(0 10% 90%);
color: hwb(0 20% 80%);
color: hwb(0 30% 70%);
color: hwb(0 40% 60%);
color: hwb(0 50% 50%);
color: hwb(0 60% 40%);
}
.test-ignore {
color: hwb(194, 0%, ... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/color-hwb/input.expect.css | CSS | .test-hwb {
color: rgb(0, 195, 255);
color: rgba(0, 195, 255, 0.5);
color: rgb(26, 26, 26);
color: rgb(51, 51, 51);
color: rgb(77, 77, 77);
color: rgb(102, 102, 102);
color: rgb(128, 128, 128);
color: rgb(153, 153, 153);
}
.test-ignore {
color: hwb(194, 0%, 0%, .5);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/color-legacy/input.css | CSS | .test-rgb {
color: rgb(178 34 34);
color: rgb(178 34 34 / 1);
color: rGB(178 34 34 / .5);
color: rgb(178 34 34 / 100%);
color: rgb(178 34 34 / 50%);
color: rgb(178 34 34 / var(--alpha-50));
color: rgb(178 34 34 / calc(1 / 2));
}
.test-rgba {
color: rgba(178 34 34);
color: rgbA(178 3... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/color-legacy/input.expect.css | CSS | .test-rgb {
color: rgb(178, 34, 34);
color: rgba(178, 34, 34, 1);
color: rgba(178, 34, 34, .5);
color: rgba(178, 34, 34, 1);
color: rgba(178, 34, 34, 0.5);
color: rgba(178, 34, 34, var(--alpha-50));
color: rgba(178, 34, 34, calc(1 / 2));
}
.test-rgba {
color: rgb(178, 34, 34);
color: rgbA(178, 34, 34,... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/color-legacy/vercel-2175/input.css | CSS | .test {
border-color: hsla(var(--ds-gray-200-value), 1);
--ds-gray-200: hsla(var(--ds-gray-200-value), 1);
} | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/color-legacy/vercel-2175/input.expect.css | CSS | .test {
border-color: hsla(var(--ds-gray-200-value), 1);
--ds-gray-200: hsla(var(--ds-gray-200-value), 1);
}
| willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/custom-media-query/basic.css | CSS | @custom-media --mq-a (max-width: 30em), (max-height: 30em);
@custom-media --mq-b screen and (max-width: 30em);
@custom-media --not-mq-a not all and (--mq-a);
@import url("narrow.css") supports(display: flex) screen and (--mq-a);
@import url("narrow.css") supports(display: flex) (--mq-a);
@import url("narrow.css") (--m... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/custom-media-query/basic.expect.css | CSS | @import url("narrow.css") supports(display: flex) screen and ((max-width: 30em) or (max-height: 30em));
@import url("narrow.css") supports(display: flex) ((max-width: 30em) or (max-height: 30em));
@import url("narrow.css") ((max-width: 30em) or (max-height: 30em));
@media ((max-width: 30em) or (max-height: 30em)) {
b... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University | |
crates/swc_css_compat/tests/custom-media-query/basic.preserve.expect.css | CSS | @custom-media --mq-a (max-width: 30em), (max-height: 30em);
@custom-media --mq-b screen and (max-width: 30em);
@custom-media --not-mq-a not all and (--mq-a);
@media (max-width: 30em),(max-height: 30em) {
body {
order: 1;
}
}
@media (--mq-a) {
body {
order: 1;
}
}
@media screen and (max-width: 30em) {
body {... | willcrichton/ilc-swc | 1 | Rust | willcrichton | Will Crichton | Brown University |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.