-
Notifications
You must be signed in to change notification settings - Fork 866
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
[Bug] Print styles being ignored #9730
Comments
PDF does not print background graphics by default, we could add an option to opt-in background graphics. |
@yufeih is background-color classified as background graphics? All I'm looking for is for the area assigned to the code fence to have a different background color so that it is visible for the user from where they should be selecting the text to copy/paste and execute outside of the document. |
I can confirm that if I turn the Background graphics setting on, the background-color is indeed rendered correctly. Having a setting to opt into this behaviour will be great. |
Added pdfPrintBackground setting to include background graphics as part of pdf printing. Fixes dotnet#9740 dotnet#9730
Describe the bug
Custom styles created for printing does not seem to get applied. I'm trying to change the background-color of the code blocks as the background color used for web output does not match the printed output. I've added the following CSS to my custom
main.css
fileThe section[role] gets applied, but the background-color overide does not get applied. I've verified that the .hljs override does work when applied to the whole site and not only to print media selector.
The text was updated successfully, but these errors were encountered: