Page 1 of 1

CSS: -oxy-append-content kills original icons

Posted: Tue Nov 10, 2015 4:47 pm
by Patrik
Hi,

in one css file I'm adding some buttons to an element using relative urls for the icons.
Now in another css file (located in another folder) I'm adding additional content (i.e. another button with icon) using -oxy-append-content.
The effect is now that the icons of the original buttons are no more displayed (but the text instead).

My guess is that the URLs are now being resolved relative to the URI of the file that added the new button. (Using Oxygen 17.0)

Any idea how I can add additional buttons from another file without killing the original icons?

Thanks and regards,

Patrik

Re: CSS: -oxy-append-content kills original icons

Posted: Wed Nov 11, 2015 11:32 am
by mihaela
Hi Patrik,

Thank you for reporting this problem. Indeed, the URLs used in the content declared in CSS are resolved relative to the location of the CSS where you used the "-oxy-append-content" property. I have registered this problem in our internal issue tracker and we will let you know when the fix will be available.

In the meantime you can use multiple before pseudo-elements to append content from different CSS sources. Here are some details and samples:
http://www.w3.org/TR/css3-content/#inserting0