I am working on a browser-extension for Chrome, firefox, Opera and Edge. I am trying to keep the codebase as compatible as possible for all 4 browsers (to keep future updates as easy to work with as possible).
I have come across an issue I havent been able to solve. In the chrome extension I have included a font as a WOFF2 file and reference it inside the CSS like this:
src: url(“chrome-extension://MSG@@extension_id_/Bebas_neue.woff2”) format(“woff2”);}
The format MSG@@extension_id_ doesn’t seem to work in firefox - but how do I reference the extension ID inside a css file?
BTW I am SO glad to see Injectable stylesheets is close to being implemented in Firefox - working with Shadow DOM this is a major leap forward!!