summaryrefslogtreecommitdiff
path: root/tests/end2end/data/darkmode/mathml.html
diff options
context:
space:
mode:
Diffstat (limited to 'tests/end2end/data/darkmode/mathml.html')
-rw-r--r--tests/end2end/data/darkmode/mathml.html13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/end2end/data/darkmode/mathml.html b/tests/end2end/data/darkmode/mathml.html
index 4a7cd548c..fa2371638 100644
--- a/tests/end2end/data/darkmode/mathml.html
+++ b/tests/end2end/data/darkmode/mathml.html
@@ -4,11 +4,20 @@
<meta charset="utf-8">
<title>MathML-like SVG</title>
</head>
- <body style="margin: 0">
+ <body style="margin: 0; background-color: #ffff99">
<!--
Image based on: https://en.wikipedia.org/wiki/Pythagorean_theorem
with a black square added for testing.
+
+ onload based on:
+ https://stackoverflow.com/questions/53423742/waiting-for-an-image-to-finish-rendering
-->
- <img class="mwe-math-fallback-image-inline" src="mathml.svg" alt="Pythagorean theorem">
+ <img
+ class="mwe-math-fallback-image-inline"
+ src="mathml.svg"
+ alt="Pythagorean theorem"
+ onload="requestAnimationFrame(() => requestAnimationFrame(() => console.log('Image loaded')));"
+ >
+ <!-- -->
</body>
</html>