External link is shown with black background when exporting a page
@HiroyasuNishiyama cloned issue kiwix/kiwix-apple#973 on 2024-09-09:
External link is shown with black background when exporting or printing a page as shown below.
@BPerlakiH commented on 2024-09-09:
@HiroyasuNishiyama Thank you for reporting this!
@kelson42 it does seems to be a content issue, there are some strange background properties set in css for the external link:
![]()
when I disabled them, the PDF looks good:
![]()
Also on non wiki content, the external links looks OK:
![]()
@HiroyasuNishiyama commented on 2024-09-10:
@BPerlakiH That CSS appears to be checking for SVG support and falling back to PNG. Please look at here.
In my opinion, this seems to be a bug of
WKWebView.
@BPerlakiH commented on 2024-09-13:
I did some further investigation on this, and force-loaded the current Wikipedia content into the app (not from a ZIM file), and exported that to PDF, and that looks good. So I think it is purely a content issue:
@HiroyasuNishiyama please provide details about which ZIM and which path / article we are dealing with, otherwise I'm concerned we are not looking at the same thing.
Your device is configured to use dark mode by default, correct?
@benoit74 It has been quite a while since I reported this issue, so I don’t remember which ZIM file or article I was using at the time. I believe the issue occurs with any ZIM file or article.
For example, I just tried it now on the "Kixix" page of "Computer by Wikipedia" ZIM file, and the same phenomenon occurred.
Regarding the device, as you pointed out, I am using dark mode.
Thank you @HiroyasuNishiyama for this valuable information.
I confirm that:
- I see same behavior on my Mac in dark mode on
Kiwixpage ofwikipedia_en_computer_nopic_2025-05 - Issue is gone with
1.15-dev0and ActionParse API
This means that issue will be gone once we've released 1.15 and switched to ActionParse API (if we confirm the move).