summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-fonts/math-script-level-and-math-style/math-depth-001-crash.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-fonts/math-script-level-and-math-style/math-depth-001-crash.html')
-rw-r--r--testing/web-platform/tests/css/css-fonts/math-script-level-and-math-style/math-depth-001-crash.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-fonts/math-script-level-and-math-style/math-depth-001-crash.html b/testing/web-platform/tests/css/css-fonts/math-script-level-and-math-style/math-depth-001-crash.html
new file mode 100644
index 0000000000..00e0c62772
--- /dev/null
+++ b/testing/web-platform/tests/css/css-fonts/math-script-level-and-math-style/math-depth-001-crash.html
@@ -0,0 +1,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>