1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167
|
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Horizontal stretchy operator (reference)</title>
<style>
@font-face {
font-family: TestFont;
src: url("/fonts/math/stretchy.woff");
}
math, mo {
font-family: TestFont;
font-size: 50px;
}
</style>
<body>
<p>This test passes if you see green rectangles and no red.</p>
<div style="position: absolute; left: 3em; top; 3em;
width: 1000px; height: 500px; background: lightgreen;">
<div style="position: absolute; top: 1px; left: 1px;">
<!-- stretchy base in munder -->
<div style="position: absolute; left: 0; top: 0;">
<math>
<munder>
<mo lspace="0" rspace="0" style="color: green;">⥚</mo>
<mspace width="200px" height="0px"/>
</munder>
</math>
</div>
</div>
<div style="position: absolute; top: 1px; left: 251px;">
<!-- stretchy script in munder -->
<div style="position: absolute; left: 0; top: 0;">
<math>
<munder>
<mspace width="200px" height="0px"/>
<mo lspace="0" rspace="0" style="color: green;">⥚</mo>
</munder>
</math>
</div>
</div>
<div style="position: absolute; top: 101px; left: 1px;">
<!-- stretchy base in mover -->
<div style="position: absolute; left: 0; top: 0;">
<math>
<mover>
<mo lspace="0" rspace="0" style="color: green;">⥚</mo>
<mspace width="200px" height="0px"/>
</mover>
</math>
</div>
</div>
<div style="position: absolute; top: 101px; left: 251px;">
<!-- stretchy script in mover -->
<div style="position: absolute; left: 0; top: 0;">
<math>
<mover>
<mspace width="200px" height="0px"/>
<mo lspace="0" rspace="0" style="color: green;">⥚</mo>
</mover>
</math>
</div>
</div>
<div style="position: absolute; top: 201px; left: 1px;">
<!-- stretchy base in munderover -->
<div style="position: absolute; left: 0; top: 0;">
<math>
<munderover>
<mo lspace="0" rspace="0" style="color: green;">⥚</mo>
<mspace width="200px" height="0px"/>
<mspace width="200px" height="0px"/>
</munderover>
</math>
</div>
</div>
<div style="position: absolute; top: 201px; left: 251px;">
<!-- stretchy underscript in munderover -->
<div style="position: absolute; left: 0; top: 0;">
<math>
<munderover>
<mspace width="200px" height="0px"/>
<mo lspace="0" rspace="0" style="color: green;">⥚</mo>
<mspace width="200px" height="0px"/>
</munderover>
</math>
</div>
</div>
<div style="position: absolute; top: 301px; left: 1px;">
<!-- stretchy overscript in munderover -->
<div style="position: absolute; left: 0; top: 0;">
<math>
<munderover>
<mspace width="200px" height="0px"/>
<mspace width="200px" height="0px"/>
<mo lspace="0" rspace="0" style="color: green;">⥚</mo>
</munderover>
</math>
</div>
</div>
<div style="position: absolute; top: 1px; left: 501px;">
<!-- stretchy base and underscript in munderover -->
<div style="position: absolute; left: 0; top: 0;">
<math>
<munderover>
<mo lspace="0" rspace="0" style="color: green;">⥚</mo>
<mspace width="200px" height="0px"/>
<mo lspace="0" rspace="0" style="color: green;">⥚</mo>
</munderover>
</math>
</div>
</div>
<div style="position: absolute; top: 151px; left: 501px;">
<!-- stretchy base and overscript in munderover -->
<div style="position: absolute; left: 0; top: 0;">
<math>
<munderover>
<mo lspace="0" rspace="0" style="color: green;">⥚</mo>
<mspace width="200px" height="0px"/>
<mo lspace="0" rspace="0" style="color: green;">⥚</mo>
</munderover>
</math>
</div>
</div>
<div style="position: absolute; top: 301px; left: 501px;">
<!-- stretchy scripts in munderover -->
<div style="position: absolute; left: 0; top: 0;">
<math>
<munderover>
<mspace width="200px" height="0px"/>
<mo lspace="0" rspace="0" style="color: green;">⥚</mo>
<mo lspace="0" rspace="0" style="color: green;">⥚</mo>
</munderover>
</math>
</div>
</div>
<div style="position: absolute; top: 1px; left: 751px;">
<!-- Only stretchy operators in munderover. The widest unstretched size
is used as the target size. -->
<div style="position: absolute; left: 0; top: 0;">
<math>
<munderover>
<mo lspace="0" rspace="0" style="font-size: 1em; color: green;">⥚</mo>
<mo lspace="0" rspace="0" style="font-size: 4em; color: green;">⥚</mo>
<mo lspace="0" rspace="0" style="font-size: 2em; color: green;">⥚</mo>
</munderover>
</math>
</div>
</div>
</div>
<script>
MathMLFeatureDetection.ensure_for_match_reftest("has_mspace");
MathMLFeatureDetection.ensure_for_match_reftest("has_munderover");
</script>
</body>
</html>
|