Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clean css cli do not round font-size(px) line-height #1249

Open
kaiceo opened this issue Apr 1, 2023 · 0 comments
Open

clean css cli do not round font-size(px) line-height #1249

kaiceo opened this issue Apr 1, 2023 · 0 comments

Comments

@kaiceo
Copy link

kaiceo commented Apr 1, 2023

Configuration options

cleancss -O1 roundingPrecision:*=2,px=0 test/font.css -o t1.css

Input CSS

.fse8{
    font-size:1.151643px;
    line-height:0.932129;   
}
.m16b{transform:matrix(0.260929,0.000000,0.000000,0.250000,0,0);-ms-transform:matrix(0.260929,0.000000,0.000000,0.250000,0,0);-webkit-transform:matrix(0.260929,0.000000,0.000000,0.250000,0,0);}
._249{margin-left:-1578.200939px;}
.y5a46{bottom:125.267522px;}
.x155{left:481.734256px;}
.v0{vertical-align:0.000000px;}
.ls0{letter-spacing:0.000000px;}
.ws0{word-spacing:0.000000px;}

Actual output CSS

.fse8{font-size:1.151643px;line-height:.932129}
.m16b{transform:matrix(.260929,0,0,.25,0,0);
-ms-transform:matrix(.260929,0,0,.25,0,0);
-webkit-transform:matrix(.260929,0,0,.25,0,0)}
._249{margin-left:-1578px}.y5a46{bottom:125px}
.x155{left:482px}
.v0{vertical-align:0}
.ls0{letter-spacing:0}
.ws0{word-spacing:0.000000px}

Expected output CSS

.fse8{font-size:1.15px;line-height:.93}
.m16b{transform:matrix(.26,0,0,.25,0,0);
-ms-transform:matrix(.26,0,0,.25,0,0);
-webkit-transform:matrix(.26,0,0,.25,0,0)}
._249{margin-left:-1578px}.y5a46{bottom:125px}
.x155{left:482px}a
.v0{vertical-align:0}
.ls0{letter-spacing:0}
.ws0{word-spacing:0}

not round font-size line-height martrix word-sapcing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant