I know this is an older question, but wanted to add a bit of intel here.
The answer is yes, if you have (or can get) the Canvas courseID for each course that the CSS is referencing.
Files held in each Canvas course can be referenced from the course's folder structure with the path
file_contents/course%20files/
However, this is the relative path assuming you are starting within the course folder. The full path from the root would be
/courses/123456789/file_contents/course%20files/
Where "123456789" is the current course's courseID. This can be useful when you're working in HTML mode within a Canvas Page, for example:
<img src="/courses/123456789/file_contents/course%20files/images/walrus.jpg" alt="The Walrus and the Carpenter, from Alice Through the Looking-Glass" />
AFAIK there is no way to dynamically get the current courseID with just CSS. You'd have to load the courseID into your CSS dynamically, which is totally possible with Javascript, but that's another topic!
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.