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



Copy link

@RunDevelopment RunDevelopment commented Dec 4, 2020

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


@RunDevelopment RunDevelopment merged commit cdb24ab into PrismJS:master Dec 28, 2020
7 checks passed
@RunDevelopment RunDevelopment deleted the line-highlight-print-fix branch Dec 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked issues

Successfully merging this pull request may close these issues.

1 participant