rsvp-reader/alt-implementations/readifry-master/hyphenator/testsuite/test90.html

50 lines
2.2 KiB
HTML

<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Hyphenator.js &ndash; Test 90</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type="text/css">
body {
width:50%;
margin-left:25%;
margin-right:25%;
font-family:'Times';
}
#test {
background-color: #ffd6d6;
}
#ref {
background-color: #d6ffd6;
}
</style>
<script src="../Hyphenator.js" type="text/javascript"></script>
<script type="text/javascript">
if (parent != window) {
Hyphenator.config({
'onhyphenationdonecallback': function () {
var desc = document.getElementById('desc').firstChild.data,
msg = {
desc: desc,
index: 90,
result: 'visual'
};
parent.postMessage(JSON.stringify(msg), window.location.href);
}
});
}
Hyphenator.config({
displaytogglebox: true,
minwordlength: 4
});
Hyphenator.run();
</script>
</head>
<body>
<p><a href="index.html">&lt;&lt;- index</a> | <a href="test89.html">&lt;- Prev</a> | <a href="test91.html">Next -&gt;</a></p>
<h1>Test 90</h1>
<p id="desc">Handle MathML/SVG-elements correctly.</p>
<div id="test" class="hyphenate"><svg viewBox="0 0 200 100"><path stroke-width="1" stroke-dasharray="3,3" stroke="black" fill="none" d="M20 80L60 20L100 80L140 20L180 80"/><circle cx="20" cy="80" r="15" fill="none" stroke="#000"> <animate attributeName="cx" repeatDur="indefinite" values="0; 160; 0" dur="16s" accumulate="none" additive="sum" fill="freeze"/> <animate attributeName="cy" repeatDur="indefinite" values="80; 20; 80; 20; 80" dur="8s" accumulate="none" fill="freeze"/> </circle> </svg>
<math> <mrow> <mi>x</mi> <mo>=</mo> <mfrac> <mrow> <mrow> <mo>-</mo> <mi>b</mi> </mrow> <mo>&PlusMinus;</mo> <msqrt> <mrow> <msup> <mi>b</mi> <mn>2</mn> </msup> <mo>-</mo> <mrow> <mn>4</mn> <mo>&InvisibleTimes;</mo> <mi>a</mi> <mo>&InvisibleTimes;</mo> <mi>c</mi> </mrow> </mrow> </msqrt> </mrow> <mrow> <mn>2</mn> <mo>&InvisibleTimes;</mo> <mi>a</mi> </mrow> </mfrac> </mrow> </math>
</div>
</body>
</html>