Closed infinity0 closed 8 months ago
Looks like the webserver hosting my original link sets x-frame-options, use <iframe src="https://infinity0.github.io/mkwww/notes/index.html"></iframe>
instead.
One work around is to add the following CSS, but only if you have control over the web page being iframed:
/* Work around https://github.com/ankidroid/Anki-Android/issues/14547 */
@media (prefers-color-scheme: light) {
body {
background-color: white;
color: black;
}
}
@media (prefers-color-scheme: dark) {
body {
background-color: black;
color: white;
}
}
I've applied this to https://infinity0.github.io/lcra/ which is my motivating use-case - to embed this website into my cards - but it should be unnecessary, and furthermore it's impossible unless you are the author of the website being iframed.
Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically
@infinity0 We've removed our night mode inversion code in 2.17, is this still a problem in the latest alpha?
Checked for duplicates?
What are the steps to reproduce this bug?
<iframe src="https://infinity0.github.io/mkwww/notes/index.html"></iframe>
to a card.Expected behaviour
Actual behaviour
Debug info
(Optional) Anything else you want to share?
Previous similar issues include #1630 (closed as "invalid") and #3950 (closed as "edge case") that were last active in 2015, however I feel an empty basic web page such as the example given here is not an "edge case" but really the most common, basic, and simple case you can have.
Research