math-script-level-auto-and-math-style-002.tentative.html (1262B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>math-script-level: auto and math-style</title> 5 <meta charset="utf-8"> 6 <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/3746"> 7 <link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-math-script-level-property"> 8 <link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-math-style-property"> 9 <meta name="assert" content="If the specified font-size is 'math' and specified math-depth is 'auto-add' and the inherited value of math-style is 'compact' then the computed math-depth is the one of its parent."> 10 <link rel="match" href="math-script-level-auto-and-math-style-002.tentative-ref.html"> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style> 13 .container { 14 /* Ahem font does not have a MATH table so the font-size scale factor 15 is always 0.71^{computed - inherited math script level} */ 16 font: 500px/1 Ahem; 17 } 18 </style> 19 </head> 20 <body> 21 <p>Test passes if you see a square of side 500 × 0.71^(1 − 0) = 355px.</p> 22 <div class="container" style="math-style: compact;"> 23 <div style="font-size: math; math-depth: auto-add">X</div> 24 </div> 25 </body> 26 </html>