darkreader / darkreader/darkreader

[Feature Request] Inconsistency between background and border on the same element

Open
#10,333 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
22.4k
Forks
2.7k
Avg merge
21h 11m
Merged PRs (30d)
78

Description

# Feature Request

## Is this feature request related to a problem?
Some inline text elements use `background-color` and `border-color`/`outline-color` at the same time to generate a larger color box. Dark Reader should generate identical color for them under dark mode.

## Screenshots
One usage on [Wikipedia](https://en.wikipedia.org/wiki/Template:Rail_color_box):
![图片](https://user-images.githubusercontent.com/24728204/202886467-97fe7901-f193-48f1-aa2b-5fac716a64af.png)
![图片](https://user-images.githubusercontent.com/24728204/202886478-4d8e4318-4466-40e8-abfe-477ecc3fd795.png)
![图片](https://user-images.githubusercontent.com/24728204/202886495-cf868bc9-ab6b-4856-b8f1-14bc595d97f7.png)

## Additional Context
I understand that there are performance concerns for keeping such consistency if those properties are defined separately for a element, so I'm proposing this only for properties defined in the same scope (both inline style, or defined in the same CSS rule).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.