math-depth-001-crash.html (1511B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>math-depth limits</title> 5 <meta charset="utf-8"> 6 <link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-math-script-level-property"> 7 <meta name="assert" content="Check change between possible limits or overflowing values of an integer math-depth do not cause any crash"> 8 <style> 9 @font-face { 10 font-family: scriptpercentscaledown80-scriptscriptpercentscaledown40; 11 src: url("/fonts/math/scriptpercentscaledown80-scriptscriptpercentscaledown40.woff"); 12 } 13 body { 14 font-family: scriptpercentscaledown80-scriptscriptpercentscaledown40; 15 } 16 </style> 17 </head> 18 <body> 19 <div style="math-depth: -128"> 20 <div style="font-size: math; math-depth: 127"> 21 <div style="font-size: math; math-depth: -128"> 22 </div> 23 </div> 24 </div> 25 <div style="math-depth: -32768"> 26 <div style="font-size: math; math-depth: 32767"> 27 <div style="font-size: math; math-depth: -32768"> 28 </div> 29 </div> 30 </div> 31 <div style="math-depth: -2147483648"> 32 <div style="font-size: math; math-depth: 2147483647"> 33 <div style="font-size: math; math-depth: -2147483648"> 34 </div> 35 </div> 36 </div> 37 <div style="math-depth: -9223372036854775808"> 38 <div style="font-size: math; math-depth: 9223372036854775807"> 39 <div style="font-size: math; math-depth: -9223372036854775808"> 40 </div> 41 </div> 42 </div> 43 </body> 44 </html>