Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-fonts/math-script-level-and-math-style/math-depth-001-crash.html - WPT Dashboard Interop Dashboard
<!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>