3 ms·
For the CSS nerds out here, cross-browser compatibility dictated the split in two rules. The following rule: news.ycombinator.com##html:style(filter:invert
by xvello 4y ago
For the CSS nerds out here, cross-browser compatibility dictated the split in two rules. The following rule:
news.ycombinator.com##html:style(filter:invert(100%) hue-rotate(180deg); background: white)
works great on Firefox, but leaves the borders white in Chrome. Chrome applies the background directive AFTER the color inversion filter, while Firefox applies it BEFORE. On Chrome, you should use instead:
news.ycombinator.com##html:style(filter:invert(100%) hue-rotate(180deg); background: black)