Skip to content

Enforce half minimum contrast ratio for dim text#4672

Merged
Tyriar merged 2 commits intoxtermjs:masterfrom
Tyriar:4262
Aug 13, 2023
Merged

Enforce half minimum contrast ratio for dim text#4672
Tyriar merged 2 commits intoxtermjs:masterfrom
Tyriar:4262

Conversation

@Tyriar
Copy link
Copy Markdown
Member

@Tyriar Tyriar commented Aug 13, 2023

Provided MCR is not too high, this ensures dim text differs from normal text and has a reasonable difference in contrast.

Fixes #4262

MCR = 10 below

webgl

image

image
dom

image
image

canvas

image
image

Provided MCR is not too high, this ensures dim text differs from normal
text and has a reasonable difference in contrast.

Fixes xtermjs#4262
@Tyriar Tyriar added this to the 5.3.0 milestone Aug 13, 2023
@Tyriar Tyriar self-assigned this Aug 13, 2023
@Tyriar Tyriar enabled auto-merge August 13, 2023 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The dim attribute should have half the minimum contrast ratio demands

1 participant