Background: Users have complained that CSS invert impacts scrolling (See https://en.wikipedia.org/wiki/Wikipedia_talk:Dark_mode_(gadget)#Extreme_slowness_while_having_this_enabled for reference)
One of the options being considered for dark-mode, and the option currently implemented by Extension:DarkMode, is a full-page color invert using the CSS filter property.
Essentially: filter: invert(1) hue-rotate(180deg) on the whole page.
This goal of this ticket is to determine whether or not that approach would have a negative performance impact on end-users, and based on that, whether it's appropriate to use this approach for anonymous users.
TODO
- Develop a synthetic testing scenario that can measure the impact of this change
- Measure the impact of this approach on low-end devices
- Measure the impact of this approach on memory
- Measure the impact of this approach on very long pages
The hypothesis here is that the filter property might create a new CSS compositing layer over the whole page, which, depending on the size of the HTML, could be taxing on the device GPU and memory, which might lead to rendering slowdowns or bugs.