Oh, really, it’s necessary to use single quotes instead of double quotes? Wow, ok then.
Actually, only text: eval("floating"); shows it without any quotes, good.
Well, the other issue is that the rest doesn’t do anything, the gate-icon is overriding the highlighting, only the text appears. Which works, but it’s not as nice as I’d like.
To help us undertand your problem, it would help that you provide an example of OSM data were you have problems to render with mapcss.
In Mapcss, you can apply rendering priorities by using z-index. You have also to assure that no other mapcss selected is conflicting with your custom mapcss.
Unselecting other mapcss, and adding to you instruction index: -1; works for me.