(disclaimer: i'm very inexperienced in this space, so the answer might be obvious)
we have chrome://credits which has chrome://credits/credits.css. i'm trying to reuse that css in other webui pages like chrome://os-credits (there are many such pages, like 5 currently, and prob more in the future). if i try to include chrome://credits/credits.css directly in chrome://os-credits, it fails immediately with:
Failed to load resource: net::ERR_INVALID_URL
oddly if i visit chrome://credits first, then reload os-credits, it works. i'm guessing there's a caching layer here that is checked first.
what i can't figure out is where to allow this cross reference. or if there's a chrome://resources/xxx URI that i can use instead to access the credits.css as resources seems like it's allowed to be shared all the time. i haven't quite found out how the chrome://resources namespace is gathered, and guessing at some paths has been unsuccessful.
does anyone have any docs/source tips for me to look into ?