I have been hours with a code that did not work and I could not find the problem. I simplified the problem to find it. At the end I find a hidden character, a character I co
The character is a UTF-8 zero-width space: e2 80 8b
. When the CSS parser reaches this character, it stops reading the file.
The solution is just to not put these in in the first place. They aren't valid as part of CSS. If you have existing ones you need to remove, you can open the file with a hex editor to identify their positions.