Page MenuHomePhabricator

Must be able to combine ResourceLoaderImageModule's icon CSS and regular CSS files in one module
Closed, DeclinedPublic

Description

We must be able to combine ResourceLoaderImageModule's icon CSS and regular CSS files in one module. Otherwise we can't use ResourceLoaderImageModule to ship OOjs UI's "core" icons, indicators and textures (which have to be included in the 'oojs-ui.styles' module).

Since we can't do dependencies for CSS-only modules (T63577), the only way is probably to make ResourceLoaderImageModule inherit from ResourceLoaderFileModule.

Event Timeline

matmarex claimed this task.
matmarex raised the priority of this task from to Needs Triage.
matmarex updated the task description. (Show Details)
Jdforrester-WMF set Security to None.
Jdforrester-WMF edited a custom field.

Change 201266 had a related patch set uploaded (by Bartosz Dziewoński):
ResourceLoaderImageModule: Inherit from ResourceLoaderFileModule

https://gerrit.wikimedia.org/r/201266

Actually, this won't help for this use case, we will have to split 'oojs-ui.styles' either way. The patch above might be useful on its own (or not), but this bug is definitely not.