Skip to content

Commit

Permalink
refactor: rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 21, 2022
1 parent 4a49db2 commit 7f8941f
Show file tree
Hide file tree
Showing 17 changed files with 66 additions and 66 deletions.
2 changes: 1 addition & 1 deletion crates/swc_atoms/words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
-moz-dialogtext
-moz-document
-moz-dragtargetzone
-moz-eventreerow
-moz-element
-moz-eventreerow
-moz-font-feature-settings
-moz-font-language-override
-moz-font-variant-ligatures
Expand Down
6 changes: 3 additions & 3 deletions crates/swc_css_prefixer/tests/fixture/calc/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ div {
width: -webkit-calc(1 + (2 * 2));
width: -moz-calc(1 + (2 * 2));
width: calc(1 + (2 * 2));
width: calc(1 + cAlC(2 * 2));
width: calc(1 + calc(2 * 2));
}
.multi-line {
width: -webkit-calc(1 + (2 * 2));
Expand Down Expand Up @@ -73,8 +73,8 @@ div {
width: calc((1 + calc(2 * 2)) * 10px);
width: -webkit-calc((1 + (2 * 2)) * 10px);
width: -moz-calc((1 + (2 * 2)) * 10px);
width: CALC((1 + (2 * 2)) * 10px);
width: CALC((1 + CALC(2 * 2)) * 10px);
width: calc((1 + (2 * 2)) * 10px);
width: calc((1 + calc(2 * 2)) * 10px);
padding: -webkit-calc((1 + (2 * 2)) * 10px) -webkit-calc((1 + (2 * 2)) * 10px);
padding: -moz-calc((1 + (2 * 2)) * 10px) -moz-calc((1 + (2 * 2)) * 10px);
padding: calc((1 + (2 * 2)) * 10px) calc((1 + (2 * 2)) * 10px);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ div {
opacity: calc(1 + calc(2 * 2));
}
.mixed-casing {
width: calc(1 + cAlC(2 * 2));
width: calc(1 + calc(2 * 2));
}
.multi-line {
width: calc(1 + calc(2 * 2));
Expand All @@ -36,7 +36,7 @@ div {
}
.foo {
width: calc((1 + calc(2 * 2)) * 10px);
width: CALC((1 + CALC(2 * 2)) * 10px);
width: calc((1 + calc(2 * 2)) * 10px);
padding: calc((1 + calc(2 * 2)) * 10px) calc((1 + calc(2 * 2)) * 10px);
padding: calc((1 + -webkit-calc(2 * 2)) * 10px);
}
Expand Down
6 changes: 3 additions & 3 deletions crates/swc_css_prefixer/tests/fixture/cursor/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
cursor: grabbing;
}
.class {
cursor: url(cursor_1.svg) 4 5, url(cursor_2.svg), IMAGE_SET(url(foo.jpg) 2x) 5 5, -webkit-grab;
cursor: url(cursor_1.svg) 4 5, url(cursor_2.svg), IMAGE_SET(url(foo.jpg) 2x) 5 5, -moz-grab;
cursor: url(cursor_1.svg) 4 5, url(cursor_2.svg), IMAGE_SET(url(foo.jpg) 2x) 5 5, GRAB;
cursor: url(cursor_1.svg) 4 5, url(cursor_2.svg), image_set(url(foo.jpg) 2x) 5 5, -webkit-grab;
cursor: url(cursor_1.svg) 4 5, url(cursor_2.svg), image_set(url(foo.jpg) 2x) 5 5, -moz-grab;
cursor: url(cursor_1.svg) 4 5, url(cursor_2.svg), image_set(url(foo.jpg) 2x) 5 5, GRAB;
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
cursor: grabbing;
}
.class {
cursor: url(cursor_1.svg) 4 5, url(cursor_2.svg), IMAGE_SET(url(foo.jpg) 2x) 5 5, GRAB;
cursor: url(cursor_1.svg) 4 5, url(cursor_2.svg), image_set(url(foo.jpg) 2x) 5 5, GRAB;
}
4 changes: 2 additions & 2 deletions crates/swc_css_prefixer/tests/fixture/filter/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ a {
transition: filter 2s;
}
div {
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50);
filter: progid:DXImageTransform.Microsoft.alpha(opacity=50);
}
b {
filter: alpha(opacity=100);
}
em {
filter: Alpha(opacity=100);
filter: alpha(opacity=100);
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ a {
transition: filter 2s;
}
div {
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=50);
filter: progid:DXImageTransform.Microsoft.alpha(opacity=50);
}
b {
filter: alpha(opacity=100);
}
em {
filter: Alpha(opacity=100);
filter: alpha(opacity=100);
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
src: format(woff), format(truetype), format(opentype), format(woff2), format(embedded-opentype), format(collection), format(svg);
}
@font-face{
src: FORMAT("woff");
src: FORMAT(WOFF);
src: format("woff");
src: format(WOFF);
}
@font-face{
src: format("woff");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
src: format(woff), format(truetype), format(opentype), format(woff2), format(embedded-opentype), format(collection), format(svg);
}
@font-face{
src: FORMAT("woff");
src: FORMAT(WOFF);
src: format("woff");
src: format(WOFF);
}
@font-face{
src: format("woff");
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_css_prefixer/tests/fixture/overflow/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ html.double-overflow {
foo-overflow: hidden auto;
}
.content {
content: 'overflow: hidden auto;';
content: "overflow: hidden auto;";
}
.important {
overflow-x: hidden !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ html.double-overflow {
foo-overflow: hidden auto;
}
.content {
content: 'overflow: hidden auto;';
content: "overflow: hidden auto;";
}
.important {
overflow: hidden auto !important;
Expand Down
10 changes: 5 additions & 5 deletions crates/swc_css_prefixer/tests/fixture/place/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ a {
justify-self: center;
place-self: center;
}
A {
a {
-webkit-align-content: space-between;
-ms-flex-line-pack: justify;
align-content: space-between;
Expand All @@ -30,19 +30,19 @@ A {
-moz-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
PLACE-CONTENT: space-between center;
place-content: space-between center;
-webkit-box-align: center;
-webkit-align-items: center;
-moz-box-align: center;
-ms-flex-align: center;
align-items: center;
justify-items: normal;
PLACE-ITEMS: center normal;
place-items: center normal;
-webkit-align-self: auto;
-ms-flex-item-align: auto;
align-self: auto;
justify-self: center;
PLACE-SELF: auto center;
place-self: auto center;
}
b {
-webkit-align-content: space-between;
Expand Down Expand Up @@ -156,7 +156,7 @@ e {
foo-place-content: first second;
}
.content {
content: 'place-content: first second;';
content: "place-content: first second;";
}
.important {
-webkit-align-content: first !important;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ a {
place-items: center normal;
place-self: center;
}
A {
PLACE-CONTENT: space-between center;
PLACE-ITEMS: center normal;
PLACE-SELF: auto center;
a {
place-content: space-between center;
place-items: center normal;
place-self: auto center;
}
b {
place-content: space-between;
Expand Down Expand Up @@ -48,7 +48,7 @@ e {
foo-place-content: first second;
}
.content {
content: 'place-content: first second;';
content: "place-content: first second;";
}
.important {
place-content: first second !important;
Expand Down
28 changes: 14 additions & 14 deletions crates/swc_css_prefixer/tests/fixture/transform/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@ a {
transition: -moz-transform 1s;
transition: -o-transform 1s;
transition: transform 1s;
-webkit-transform: rotateX(45deg);
-moz-transform: rotateX(45deg);
transform: rotateX(45deg);
-webkit-transform: rotatex(45deg);
-moz-transform: rotatex(45deg);
transform: rotatex(45deg);
}
b {
-webkit-transform: translateX(45deg);
-moz-transform: translateX(45deg);
-ms-transform: translateX(45deg);
-o-transform: translateX(45deg);
transform: translateX(45deg);
-webkit-transform: translatex(45deg);
-moz-transform: translatex(45deg);
-ms-transform: translatex(45deg);
-o-transform: translatex(45deg);
transform: translatex(45deg);
-webkit-transform-origin: 0 0;
-moz-transform-origin: 0 0;
-ms-transform-origin: 0 0;
-o-transform-origin: 0 0;
transform-origin: 0 0;
}
em {
-webkit-transform: rotateZ(45deg);
-moz-transform: rotateZ(45deg);
transform: rotateZ(45deg);
-webkit-transform: rotatez(45deg);
-moz-transform: rotatez(45deg);
transform: rotatez(45deg);
}
@-webkit-keyframes anim {
from {
Expand Down Expand Up @@ -66,7 +66,7 @@ em {
transform-style: flat;
}
.class {
-webkit-transform: perspective(500px) rotateY(3deg);
-moz-transform: perspective(500px) rotateY(3deg);
transform: perspective(500px) rotateY(3deg);
-webkit-transform: perspective(500px) rotatey(3deg);
-moz-transform: perspective(500px) rotatey(3deg);
transform: perspective(500px) rotatey(3deg);
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
}
a {
transition: transform 1s;
transform: rotateX(45deg);
transform: rotatex(45deg);
}
b {
transform: translateX(45deg);
transform: translatex(45deg);
transform-origin: 0 0;
}
em {
transform: rotateZ(45deg);
transform: rotatez(45deg);
}
@keyframes anim {
from {
Expand All @@ -21,5 +21,5 @@ em {
transform-style: flat;
}
.class {
transform: perspective(500px) rotateY(3deg);
transform: perspective(500px) rotatey(3deg);
}
30 changes: 15 additions & 15 deletions crates/swc_css_prefixer/tests/fixture/transition/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ input[type=range]::-webkit-slider-thumb {
}
button::-moz-submit-invalid {
opacity: 1;
-webkit-transform: translateX(45px);
-moz-transform: translateX(45px);
-ms-transform: translateX(45px);
-o-transform: translateX(45px);
transform: translateX(45px);
-webkit-transform: translatex(45px);
-moz-transform: translatex(45px);
-ms-transform: translatex(45px);
-o-transform: translatex(45px);
transform: translatex(45px);
-webkit-transition: opacity 0.5s 2s, -webkit-transform 0.5s 0.5s;
-moz-transition: opacity 0.5s 2s, -moz-transform 0.5s 0.5s;
-o-transition: opacity 0.5s 2s, -o-transform 0.5s 0.5s;
Expand All @@ -107,11 +107,11 @@ button::-moz-submit-invalid {
@supports ((transition: opacity 0.5s 2s, transform 0.5s 0.5s) or (-webkit-transition: opacity 0.5s 2s, -webkit-transform 0.5s 0.5s) or (-moz-transition: opacity 0.5s 2s, -moz-transform 0.5s 0.5s) or (-o-transition: opacity 0.5s 2s, -o-transform 0.5s 0.5s) or (transition: opacity 0.5s 2s, -webkit-transform 0.5s 0.5s) or (transition: opacity 0.5s 2s, -moz-transform 0.5s 0.5s) or (transition: opacity 0.5s 2s, -o-transform 0.5s 0.5s)) {
button::-moz-submit-invalid {
opacity: 1;
-webkit-transform: translateX(45px);
-moz-transform: translateX(45px);
-ms-transform: translateX(45px);
-o-transform: translateX(45px);
transform: translateX(45px);
-webkit-transform: translatex(45px);
-moz-transform: translatex(45px);
-ms-transform: translatex(45px);
-o-transform: translatex(45px);
transform: translatex(45px);
-webkit-transition: opacity 0.5s 2s, -webkit-transform 0.5s 0.5s;
-moz-transition: opacity 0.5s 2s, -moz-transform 0.5s 0.5s;
-o-transition: opacity 0.5s 2s, -o-transform 0.5s 0.5s;
Expand All @@ -122,11 +122,11 @@ button::-moz-submit-invalid {
}
button {
opacity: 1;
-webkit-transform: translateX(45px);
-moz-transform: translateX(45px);
-ms-transform: translateX(45px);
-o-transform: translateX(45px);
transform: translateX(45px);
-webkit-transform: translatex(45px);
-moz-transform: translatex(45px);
-ms-transform: translatex(45px);
-o-transform: translatex(45px);
transform: translatex(45px);
-webkit-transition: opacity 0.5s 2s, -webkit-transform 0.5s 0.5s;
-moz-transition: opacity 0.5s 2s, -moz-transform 0.5s 0.5s;
-o-transition: opacity 0.5s 2s, -o-transform 0.5s 0.5s;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,18 @@ input[type=range]::-webkit-slider-thumb {
}
button::-moz-submit-invalid {
opacity: 1;
transform: translateX(45px);
transform: translatex(45px);
transition: opacity 0.5s 2s, transform 0.5s 0.5s;
}
@supports (transition: opacity 0.5s 2s, transform 0.5s 0.5s) {
button::-moz-submit-invalid {
opacity: 1;
transform: translateX(45px);
transform: translatex(45px);
transition: opacity 0.5s 2s, transform 0.5s 0.5s;
}
button {
opacity: 1;
transform: translateX(45px);
transform: translatex(45px);
transition: opacity 0.5s 2s, transform 0.5s 0.5s;
}
}
Expand Down

0 comments on commit 7f8941f

Please sign in to comment.