1
+ <!DOCTYPE html>
2
+ < html class ="reftest-wait ">
3
+ < head >
4
+ < title > Issue 1186</ title >
5
+ <!-- Copyright (c) 2016 MathJax Consortium
6
+ License: Apache License 2.0 -->
7
+ < meta http-equiv ="Content-Type " content ="text/html; charset=UTF-8 "/>
8
+ < script type ="text/javascript " src ="../header.js "> </ script >
9
+ < script type ="text/javascript " src ="../scriptTests.js "> </ script >
10
+
11
+ < script >
12
+ function getTestCases ( ) {
13
+ var h1 = document . getElementById ( "minus-up" ) . offsetHeight ;
14
+ var h2 = document . getElementById ( "plus-up" ) . offsetHeight ;
15
+ var h3 = document . getElementById ( "minus-down" ) . offsetHeight ;
16
+ var h4 = document . getElementById ( "plus-down" ) . offsetHeight ;
17
+ return [
18
+ newScriptReftestResult ( 'Minus matches plus height (' + h1 + ',' + h2 + ') ' , Math . abs ( h1 - h2 ) < 2 ) ,
19
+ newScriptReftestResult ( 'Minus matches plus depth (' + h3 + ',' + h4 + ') ' , Math . abs ( h3 - h4 ) < 2 )
20
+ ] ;
21
+ }
22
+ </ script >
23
+
24
+ </ head >
25
+
26
+ < body >
27
+
28
+ <!-- Height and depth of minus shoudl match plus
29
+ https://github.com/mathjax/MathJax/issues/1187 -->
30
+
31
+ < span id ="minus-up " style ="display:inline-block ">
32
+ < math >
33
+ < mpadded height ="+1em " voffset ="1em ">
34
+ < mstyle style ="border:1px solid red ">
35
+ < mo > −</ mo >
36
+ </ mstyle >
37
+ </ mpadded >
38
+ </ math >
39
+ </ span >
40
+ < span id ="plus-up " style ="display:inline-block ">
41
+ < math >
42
+ < mpadded height ="+1em " voffset ="1em ">
43
+ < mstyle style ="border:1px solid red ">
44
+ < mo > +</ mo >
45
+ </ mstyle >
46
+ </ mpadded >
47
+ </ math >
48
+ </ span >
49
+
50
+ < span id ="minus-down " style ="display:inline-block ">
51
+ < math >
52
+ < mpadded depth ="+1em " voffset ="-1em ">
53
+ < mstyle style ="border:1px solid red ">
54
+ < mo > −</ mo >
55
+ </ mstyle >
56
+ </ mpadded >
57
+ </ math >
58
+ </ span >
59
+ < span id ="plus-down " style ="display:inline-block ">
60
+ < math >
61
+ < mpadded depth ="+1em " voffset ="-1em ">
62
+ < mstyle style ="border:1px solid red ">
63
+ < mo > +</ mo >
64
+ </ mstyle >
65
+ </ mpadded >
66
+ </ math >
67
+ </ span >
68
+ < br />
69
+
70
+ </ body >
71
+ </ html >
0 commit comments