I'm working on a user script to dynamically load diff content — https://commons.wikimedia.org/wiki/User:Serhio_Magpie/Instant_Diffs. Some of the required dependencies load styles that unintentionally affect the page layout. At the moment, I’m using a set of override hacks to neutralize these styles. Perhaps these styles could be scoped more appropriately in the future.
Steps to replicate the issue:
- Turn on Advanced mode in the Settings.
- Open [[Special:Watchlist]]
- Load a dependency in the console: mw.loader.load( 'mediawiki.diff.styles' );
What happens?:
The dependency loads additional CSS styles that are not scoped within the parent class (see the user icon that appears):
What should have happened instead?:
Styles should remain unchanged. Consider scoping the dependency styles to table.diff.