Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update highlight background when forced colors are active (bug 1759886) #15921

Merged
merged 1 commit into from
Jan 16, 2023

Conversation

fchasen
Copy link
Contributor

@fchasen fchasen commented Jan 13, 2023

When forced color are active this updates the background of highlights to use CSS system colors, so Windows HCM mode will pick a highlight color that strongly contrasts the text.

Screen Shot 2023-01-13 at 2 30 01 PM

Ideally we could add outlines for highlights and remove the background to provide better contrast, but I don't think this is possible without forced-color-adjust: none or color: transparent support.

@fchasen fchasen marked this pull request as ready for review January 13, 2023 22:36
@fchasen fchasen changed the title Update highlight background when forced colors are active Update highlight background when forced colors are active (bug 1759886) Jan 13, 2023
@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Received

Command cmd_preview from @timvandermeij received. Current queue size: 0

Live output at: http://54.241.84.105:8877/528769321156757/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux m4)


Success

Full output at http://54.241.84.105:8877/528769321156757/output.txt

Total script time: 1.22 mins

Published

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you.

@calixteman calixteman merged commit e9c8aa6 into mozilla:master Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants