Linking to CSS functions using cssxref macro

I keep trying to link to functions like translateX() and similar, which should be resulting in the text “translateX()” with a link to the page Web/CSS/transform-function/translateZ, but instead, I’m winding up with the text “translatex()” and a link to the page Web/CSS/translateX(), which is obviously wrong.

What’s the trick to doing this properly?

Eric Shepherd
Senior Technical Writer
Mozilla


Blog: http://www.bitstampede.com/
Twitter: http://twitter.com/sheppy

I’m trying to learn the doc system right now @sheppy, you mind linking to the page your editing so that maybe I can take a gander at it?

:slight_smile:
Namaste

~ Steve

I’d have just said

{{cssxref(“transform-function/translateZ”,“translateZ”)}}

But you’re right — it seems to lower case the link text, no matter what you do. I guess I’ve just not come across this problem before, as most CSS syntax is all lower case.

Looking at the macro, I’d say the problem is this line here:

Yeah, looks like it. I just wonder if we can figure out a way to avoid having to do the two parameter solution, too.

Yeah, I’m working on updates to https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/translateZ in this case.