https://bugs.webkit.org/show_bug.cgi?id=137535 adds support for the inverted-colors media feature. Listen for a system notification that the user has enabled/disabled this mode and trigger a style recalculation.
<rdar://problem/18807811>
<rdar://problem/18807812>