darkreader / darkreader/darkreader

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

Aperta
#10,333 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
TypeScript
Stelle
22.4k
Fork
2.7k
Merge medio
21h 46m
PR unite (30g)
75

Descrizione

# 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).

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reproducing the Wikipedia rail color box example and inspect how background-color, border-color, and outline-color are transformed in dark mode. The change is done when properties defined in the same inline style or CSS rule produce identical colors without requiring consistency across separate scopes.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
css
Ambito
frontend, web-dev
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.