Comments inline. > On May 19, 2020, at 7:47 PM, Alex Harui <aha...@adobe.com.INVALID> wrote: > > IMO, we want to avoid overuse of this feature such that we should not need > specifying order. There should be very few places where this is truly > needed. It is tempting to use it for other things, but it really should only > be used when the initialization of the class and prototype requires it.
I totally agree that we want to avoid this as much as possible in Royale code, but I’ve needed extensive use of including CSS for my work with Spectrum. Spectrum is particular on the order of the loaded CSS, hence the need to specify order. https://github.com/adobe/spectrum-css/issues/481 <https://github.com/adobe/spectrum-css/issues/481> I’m currently using inject_html in Spectrum, but it’s not a very good solution and I need to reorder the included CSS. > What would be a scenario where a PNG or SVG file is required to initialize a > class? Skinning and icon sets of libraries come to mind. For example: Spectrum has its set of required icons which are saved as SVG. Including that in a SWC simplifies library use.