Chrome's forced dark mode changed how it treats small logos in a recent update

Chrome's forced dark mode, which repaints light pages dark unless a site has its own dark theme, decides whether to invert an image based on its size. Images drawn at 64 CSS pixels or less in each dimension are considered icons and may be flipped, while larger images are left alone. The threshold replaced an earlier screen-proportion rule in Chrome 151, which was dropped because it scaled with screen size and pixel density. Smaller grey images are then sorted by how many shades of grey they contain, with a neural network deciding borderline cases. The author reverse-engineered the classifier in Python and found it matched Chrome's decisions on all 35 images tested.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in