-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
Minified CSS icons #322
Comments
For original source CSS see https://github.com/prologic/twtxt/tree/master/internal/static/css |
Which version are you using of I've ran the following test and the icons show fine for me:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test</title>
<link rel=stylesheet href="icss.min.css">
<link rel=stylesheet href="icons.min.css">
</head>
<body>
<i class="icss-text-bold"></i> test
</body>
</html> Please let me know if you have something so I can reproduce the bug. Thanks! |
I was running the latest from
|
Or in other words I was trying to combine and minify all the CSS into a single file. |
I've done the same thing (combine and minify all CSS to the same file) and I still get icons that are working well, I'm unable to reproduce the bug. Could you send the HTML file that is giving this problem so I can check? Can you make sure this is a CSS problem by confirming that the bug exists only after minifying the CSS (and not the HTML or other sources)? I was hoping you could give me an HTML + CSS file that shows the bug so that I can reproduce it. |
The branch is here
Hopefully this helps! Yes I can confirm the weirdness in the icons is only present after minification/combination. |
Any ideas? I'm not sure my trying again will magically fix things? :) |
I'll get back to you after the weekend |
Can I do anything more to help figure this one out? |
The problem is in the order of minification of files. You need to have
As you can see, the order is correct now. The order by the way is determined by your bash script (which expands |
This is what I thought too! So what I did was use an old UNIX trick and rename all the |
Yup it works! I did something wrong before and/or I was half asleep 🥱 https://github.com/jointwt/twtxt/commit/3f98ae669dd94fc1a25a6f6e788aa6d54c2e6dc6 fixes this for me. |
Did you properly refresh the browser cache? I think in IE that is a Shift+click on the refresh symbol. |
Yes, even Deleted its cache :D Although I will check with a real user that uses a real Windows PC with IE11 since I was only able to test on a VM. |
Please check/test https://twtxt.net (which you can find the source at https://github.com/jointwt/twtxt) |
The eyes of the smiley is a bug, working on a solution. The IE11 problem is something I can't test on my Linux easily, I'm pretty sure this must be an artifact of the order of the CSS files, but if it persists I'll need to install a virtual machine. |
Thank you! Look forward to the fix, Can we cut a new release too? |
I'll push out a new release very soon, what happened with the IE11 problem? |
I just pused jointwt/twtxt@dc008b2dcdde577a824ac922a11dd4b1f17e9ab8 with a new version of the tool by just updating ot master locally. I will still need a new release so the CI/CD pipeline works :) I'll check IE11 to see how it affected the icons there and report back! |
Ok I'll take a look with a virtual machine |
I see the issue aswell in IE11, it looks like it uses For me the |
Let me try and report back! |
Hmmm I didn't realise you had a v2 of this tool, I tried to update to it with:
But re-generating the bundles produces no differences. Am I missing something? |
Actually I _feel rather stupid here or Go still doesn't support |
I just tried to build from a Git checkout and install the tool:
And in my project:
Still produces no difference in the generate bundled files. So the IE11 bug remains 🤔 |
Just to make sure, can you download the binary from GitHub of v2.9.3 (from https://github.com/tdewolff/minify/releases/tag/v2.9.3) and use that binary. Note that |
Looks like I already have this updated to the tool and minified/combined css bundle:
Does this match your expectations? |
Sounds good to me! Does it work well in your browsers? |
Yeah no it still looks terrible in IE11 :/ I'm really not sure why :) Did you manage to get an IE11 VM? I got it off MS's developer site here maybe you can see what's going on? |
I did manage to get IE11 in my VM and it worked well. Can you please look at the CSS code for the element that is bad (Inspect Element in IE11)? |
Before:
After:
I'm not an expert in CSS to understand what you're tool is doing to my CSS here :/
The text was updated successfully, but these errors were encountered: