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

Minifying 0px within calc statements breaking site. #468

Open
bv-sumit opened this issue Jul 12, 2023 · 0 comments
Open

Minifying 0px within calc statements breaking site. #468

bv-sumit opened this issue Jul 12, 2023 · 0 comments

Comments

@bv-sumit
Copy link

bv-sumit commented Jul 12, 2023

Stylesheet is case insensitive. So we need to handle the comparison of mathematical function names by converting everything to lower case.

Example: .novablocks-content,.novablocks-sidecar{position:relative;display:var(--display-mode);--default-sidebar-width:calc(var(--minimum-sidebar-width)*0.5);--wds:var(--default-width-offset-sidebar,var(--default-sidebar-width));--wde:var(--default-width-offset-sidebar,var(--default-sidebar-width));--full:calc(50vw - var(--theme-content-width-wide)*0.5);grid-template-columns:[fs] Max(0px,var(--editor-full,var(--full))) [ws] calc(var(--wds)*2) [gs] var(--grid-gap) [cs] 1fr [gcs] calc(var(--grid-gap)/2) [cc] calc(var(--grid-gap)/2) [gce] 1fr [ce] var(--grid-gap) [ge] calc(var(--wde)*2) [we] Max(0px,var(--editor-full,var(--full))) [fe];-webkit-box-align:start;-ms-flex-align:start;align-items:start}

Current Output: .novablocks-content,.novablocks-sidecar{position:relative;display:var(--display-mode);--default-sidebar-width:calc(var(--minimum-sidebar-width)*0.5);--wds:var(--default-width-offset-sidebar,var(--default-sidebar-width));--wde:var(--default-width-offset-sidebar,var(--default-sidebar-width));--full:calc(50vw - var(--theme-content-width-wide)*0.5);grid-template-columns:[fs]Max(0,var(--editor-full,var(--full)))[ws]calc(var(--wds)*2)[gs]var(--grid-gap)[cs]1fr[gcs]calc(var(--grid-gap)/2)[cc]calc(var(--grid-gap)/2)[gce]1fr[ce]var(--grid-gap)[ge]calc(var(--wde)*2)[we]Max(0,var(--editor-full,var(--full)))[fe];-webkit-box-align:start;-ms-flex-align:start;align-items:start}

This is breaking the site.

bv-sumit added a commit to bv-sumit/csso that referenced this issue Jul 12, 2023
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