Steps to replicate the issue (include links if applicable):
- Create a .css file outside of templatespace.
- Call that css file from a page. You will get an error that reads something like "Content namespace of [that css file] is "CSS" but it can only be "Sanitized CSS". Make an edit request using.... and something else that i forgot"
- Go to "Special:ChangeContentModel" and change the content model of that css file to "Sanitized CSS" and purge the cache of the page using that css file
What happens?:
Error persists, templatestyles still thinks that that page's content model is still "CSS"
What should have happened instead?: Error should've gone away and that CSS file's rules be applied to the page's contents
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia): enwiki
Other information (browser name/version, screenshots, etc.):
This can be circumvented if you create the css file in template namespace and move outside of templatespace.