Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

Converting 0deg -> 0 causes errors in IE11 #72

Open
emmFinalist opened this issue Jun 25, 2020 · 2 comments
Open

Converting 0deg -> 0 causes errors in IE11 #72

emmFinalist opened this issue Jun 25, 2020 · 2 comments

Comments

@emmFinalist
Copy link

I've been testing some code in IE11/Windows 7 with Browserstack and found uglify is causing errors in the following code

background: linear-gradient(0,rgba(105,44,145,0.3),rgba(105,44,145,0.3)),linear-gradient(0,rgba(0,49,131,0.3),rgba(0,49,131,0.3)),linear-gradient(90deg,rgba(0,174,239,0.9) 23.61%,rgba(0,49,131,0.0001) 99.7%)

changing 0 to 0deg (first value in linear-gradient()) fixes this .

@ammannbe
Copy link

ammannbe commented Sep 1, 2022

This is also a problem in modern browsers if e.g. you define a variable:

:root {
    --myVar: 0px;
}

and use it later for calculations:

.myClass {
    right: calc(var(--myVar) + 10px);
}

@amdd-tim
Copy link

Same issue with 'px' getting stripped out when using for a calculation!

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

No branches or pull requests

3 participants