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

CSS issue - background-color: transparent changes to background-color: initial #394

Closed
coliff opened this issue Mar 26, 2021 · 1 comment

Comments

@coliff
Copy link

coliff commented Mar 26, 2021

Hey there. I noticed what I think is a bug. Bootstrap 5 has a .bg-transparent class which has the properties:

background-color: transparent !important;

However, minify (via Hugo v80.0) changes this to:

background-color:initial!important

background-color: initial isn't supported by Internet Explorer 11. IE11 still has approx 2% desktop browser marketshare so I don't think minify should make breaking changes to CSS for IE users.

@tdewolff
Copy link
Owner

tdewolff commented Apr 2, 2021

Thanks, this should be fixed using the KeepCSS2 option!

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

2 participants