summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-fonts/math-script-level-and-math-style/math-depth-001-crash.html
blob: 00e0c6277252df1c4fedcdd7f8963d78850ee26c (plain)
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
<!DOCTYPE html>
<html>
  <head>
    <title>math-depth limits</title>
    <meta charset="utf-8">
    <link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-math-script-level-property">
    <meta name="assert" content="Check change between possible limits or overflowing values of an integer math-depth do not cause any crash">
    <style>
      @font-face {
        font-family: scriptpercentscaledown80-scriptscriptpercentscaledown40;
        src: url("/fonts/math/scriptpercentscaledown80-scriptscriptpercentscaledown40.woff");
      }
      body {
        font-family: scriptpercentscaledown80-scriptscriptpercentscaledown40;
      }
    </style>
  </head>
  <body>
    <div style="math-depth: -128">
      <div style="font-size: math; math-depth: 127">
        <div style="font-size: math; math-depth: -128">
        </div>
      </div>
    </div>
    <div style="math-depth: -32768">
      <div style="font-size: math; math-depth: 32767">
        <div style="font-size: math; math-depth: -32768">
        </div>
      </div>
    </div>
    <div style="math-depth: -2147483648">
      <div style="font-size: math; math-depth: 2147483647">
        <div style="font-size: math; math-depth: -2147483648">
        </div>
      </div>
    </div>
    <div style="math-depth: -9223372036854775808">
      <div style="font-size: math; math-depth: 9223372036854775807">
        <div style="font-size: math; math-depth: -9223372036854775808">
        </div>
      </div>
    </div>
  </body>
</html>