(#16429) Relpaths

Two of these fixes are simple changes to the CSS.

The third is a code change, but relatively minor.

I added a test for the code change, but I don't see an easy way to test that it gets the right path even at a sub-URI.  Still, this shows that the code is executed and produces the correct result in at least one condition.