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

Line Highlight: Fixed print background color #2668

Merged

Conversation

RunDevelopment
Copy link
Member

This fixes #2666.

Browsers try to save ink when printing a page by replacing the background color of most elements with opaque white. This is a problem because the .line-highlight is layered above the displayed code which blocks its view.

The fix has been tested on Chrome and Firefox.

Fixed example

image

@RunDevelopment RunDevelopment merged commit cdb24ab into PrismJS:master Dec 28, 2020
@RunDevelopment RunDevelopment deleted the line-highlight-print-fix branch December 28, 2020 18:25
This was referenced Mar 6, 2021
This was referenced Mar 15, 2021
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.

Line-highlight corrupt print
1 participant