blob: 350f086c466de27659ac5baa861311b96c87cdea [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>math-script-level and font-min-size</title>
<meta charset="utf-8">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/3739">
<meta name="assert" content="font-min-size only affects the used size.">
<link rel="match" href="math-script-level-font-size-clamping-004.tentative-ref.html">
<style>
.container {
/* Ahem font does not have a MATH table so the font-size scale factor
is always 0.71^{computed - inherited math script level} */
font: 100px/1 Ahem;
}
</style>
</head>
<body>
<p>Test passes if you see a square of side 100px.</p>
<div class="container"><!-- Initial size is 100px. -->
<div style="math-script-level: add(1);"><!-- Size is 100*.71 = 71px. -->
<div style="font-min-size: 90px"><!-- This only affects used size. -->
<div style="math-script-level: add(-1);">X</div><!-- back to 100px. -->
</div>
</div>
</div>
</body>
</html>