@@ -11552,14 +11552,16 @@ mod tests {
1155211552 ".foo { transform: matrix3d(1, 0, 0, 0, 0, 1, 6, 0, 0, 0, 1, 0, 50, 100, 0, 1.1)",
1155311553 ".foo{transform:matrix3d(1,0,0,0,0,1,6,0,0,0,1,0,50,100,0,1.1)}",
1155411554 );
11555- minify_test(
11556- ".foo{transform:translate(100px,200px) rotate(45deg) skew(10deg) scale(2)}",
11557- ".foo{transform:matrix(1.41421,1.41421,-1.16485,1.66358,100,200)}",
11558- );
11559- minify_test(
11560- ".foo{transform:translate(200px,300px) translate(100px,200px) scale(2)}",
11561- ".foo{transform:matrix(2,0,0,2,300,500)}",
11562- );
11555+ // TODO: Re-enable with a better solution
11556+ // See: https://github.com/parcel-bundler/lightningcss/issues/288
11557+ // minify_test(
11558+ // ".foo{transform:translate(100px,200px) rotate(45deg) skew(10deg) scale(2)}",
11559+ // ".foo{transform:matrix(1.41421,1.41421,-1.16485,1.66358,100,200)}",
11560+ // );
11561+ // minify_test(
11562+ // ".foo{transform:translate(200px,300px) translate(100px,200px) scale(2)}",
11563+ // ".foo{transform:matrix(2,0,0,2,300,500)}",
11564+ // );
1156311565 minify_test(
1156411566 ".foo{transform:translate(100px,200px) rotate(45deg)}",
1156511567 ".foo{transform:translate(100px,200px)rotate(45deg)}",
@@ -11568,34 +11570,36 @@ mod tests {
1156811570 ".foo{transform:rotate3d(1, 1, 1, 45deg) translate3d(100px, 100px, 10px)}",
1156911571 ".foo{transform:rotate3d(1,1,1,45deg)translate3d(100px,100px,10px)}",
1157011572 );
11571- minify_test(
11572- ".foo{transform:translate3d(100px, 100px, 10px) skew(10deg) scale3d(2, 3, 4)}",
11573- ".foo{transform:matrix3d(2,0,0,0,.528981,3,0,0,0,0,4,0,100,100,10,1)}",
11574- );
11575- minify_test(
11576- ".foo{transform:matrix3d(0.804737854124365, 0.5058793634016805, -0.31061721752604554, 0, -0.31061721752604554, 0.804737854124365, 0.5058793634016805, 0, 0.5058793634016805, -0.31061721752604554, 0.804737854124365, 0, 100, 100, 10, 1)}",
11577- ".foo{transform:translate3d(100px,100px,10px)rotate3d(1,1,1,45deg)}"
11578- );
11579- minify_test(
11580- ".foo{transform:matrix3d(1, 0, 0, 0, 0, 0.7071067811865476, 0.7071067811865475, 0, 0, -0.7071067811865475, 0.7071067811865476, 0, 100, 100, 10, 1)}",
11581- ".foo{transform:translate3d(100px,100px,10px)rotateX(45deg)}"
11582- );
11583- minify_test(
11584- ".foo{transform:translate3d(100px, 200px, 10px) translate(100px, 100px)}",
11585- ".foo{transform:translate3d(200px,300px,10px)}",
11586- );
11587- minify_test(
11588- ".foo{transform:rotate(45deg) rotate(45deg)}",
11589- ".foo{transform:rotate(90deg)}",
11590- );
11591- minify_test(
11592- ".foo{transform:matrix(0.7071067811865476, 0.7071067811865475, -0.7071067811865475, 0.7071067811865476, 100, 100)}",
11593- ".foo{transform:translate(100px,100px)rotate(45deg)}"
11594- );
11595- minify_test(
11596- ".foo{transform:translateX(2in) translateX(50px)}",
11597- ".foo{transform:translate(242px)}",
11598- );
11573+ // TODO: Re-enable with a better solution
11574+ // See: https://github.com/parcel-bundler/lightningcss/issues/288
11575+ // minify_test(
11576+ // ".foo{transform:translate3d(100px, 100px, 10px) skew(10deg) scale3d(2, 3, 4)}",
11577+ // ".foo{transform:matrix3d(2,0,0,0,.528981,3,0,0,0,0,4,0,100,100,10,1)}",
11578+ // );
11579+ // minify_test(
11580+ // ".foo{transform:matrix3d(0.804737854124365, 0.5058793634016805, -0.31061721752604554, 0, -0.31061721752604554, 0.804737854124365, 0.5058793634016805, 0, 0.5058793634016805, -0.31061721752604554, 0.804737854124365, 0, 100, 100, 10, 1)}",
11581+ // ".foo{transform:translate3d(100px,100px,10px)rotate3d(1,1,1,45deg)}"
11582+ // );
11583+ // minify_test(
11584+ // ".foo{transform:matrix3d(1, 0, 0, 0, 0, 0.7071067811865476, 0.7071067811865475, 0, 0, -0.7071067811865475, 0.7071067811865476, 0, 100, 100, 10, 1)}",
11585+ // ".foo{transform:translate3d(100px,100px,10px)rotateX(45deg)}"
11586+ // );
11587+ // minify_test(
11588+ // ".foo{transform:translate3d(100px, 200px, 10px) translate(100px, 100px)}",
11589+ // ".foo{transform:translate3d(200px,300px,10px)}",
11590+ // );
11591+ // minify_test(
11592+ // ".foo{transform:rotate(45deg) rotate(45deg)}",
11593+ // ".foo{transform:rotate(90deg)}",
11594+ // );
11595+ // minify_test(
11596+ // ".foo{transform:matrix(0.7071067811865476, 0.7071067811865475, -0.7071067811865475, 0.7071067811865476, 100, 100)}",
11597+ // ".foo{transform:translate(100px,100px)rotate(45deg)}"
11598+ // );
11599+ // minify_test(
11600+ // ".foo{transform:translateX(2in) translateX(50px)}",
11601+ // ".foo{transform:translate(242px)}",
11602+ // );
1159911603 minify_test(
1160011604 ".foo{transform:translateX(calc(2in + 50px))}",
1160111605 ".foo{transform:translate(242px)}",
@@ -11660,7 +11664,9 @@ mod tests {
1166011664 minify_test(".foo { scale: 1 0 1 }", ".foo{scale:1 0}");
1166111665 minify_test(".foo { scale: 1 0 0 }", ".foo{scale:1 0 0}");
1166211666
11663- minify_test(".foo { transform: scale(3); scale: 0.5 }", ".foo{transform:scale(1.5)}");
11667+ // TODO: Re-enable with a better solution
11668+ // See: https://github.com/parcel-bundler/lightningcss/issues/288
11669+ // minify_test(".foo { transform: scale(3); scale: 0.5 }", ".foo{transform:scale(1.5)}");
1166411670 minify_test(".foo { scale: 0.5; transform: scale(3); }", ".foo{transform:scale(3)}");
1166511671
1166611672 prefix_test(
@@ -26076,13 +26082,15 @@ mod tests {
2607626082 "@property --property-name{syntax:\"custom|<color>\";inherits:false;initial-value:#ff0}",
2607726083 );
2607826084
26079- minify_test(r#"
26080- @property --property-name {
26081- syntax: '<transform-list>';
26082- inherits: false;
26083- initial-value: translate(200px,300px) translate(100px,200px) scale(2);
26084- }
26085- "#, "@property --property-name{syntax:\"<transform-list>\";inherits:false;initial-value:matrix(2,0,0,2,300,500)}");
26085+ // TODO: Re-enable with a better solution
26086+ // See: https://github.com/parcel-bundler/lightningcss/issues/288
26087+ // minify_test(r#"
26088+ // @property --property-name {
26089+ // syntax: '<transform-list>';
26090+ // inherits: false;
26091+ // initial-value: translate(200px,300px) translate(100px,200px) scale(2);
26092+ // }
26093+ // "#, "@property --property-name{syntax:\"<transform-list>\";inherits:false;initial-value:matrix(2,0,0,2,300,500)}");
2608626094
2608726095 minify_test(
2608826096 r#"
0 commit comments