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

Firefox H2 print rendering fix #1630

Merged
merged 4 commits into from
Nov 21, 2022
Merged

Conversation

zolrath
Copy link
Contributor

@zolrath zolrath commented Nov 21, 2022

Hey hey!

Couldn't let this ship tomorrow without at least giving Firefox a look!
The markup looks fine so I can't quite give a good answer to why Firefox print renderer brings the H2's border down into the H3 in that one instance, but by using a :before pseudo element to add the border we remove the issue.

While I was there, I cleaned up the removal of the Print/Settings/View Source icons as two of them still rendered on print.

Additionally, I collapsed the borders on the code elements so there wouldn't be a double thick line when two code elements followed each other.

Firefox Fixes.pdf

Firefox Print Rendering Oddity

When Firefox renders a PDF it handles font-weight: 700 oddly and effectively just doubles the text and shifts it slightly?
Looks fine when you print from Firefox, but when you zoom in, bold text in the saved PDF looks quite weird.

I've removed the font-weight: bold from the td which fixes this and looks to be more correct, but thought I should document this rendering oddity.

image

@josevalim josevalim merged commit 69a74c0 into elixir-lang:main Nov 21, 2022
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants