Skip to content

Commit

Permalink
Bug 1637291 [wpt PR 23538] - Update some scriptlevel tests to match t…
Browse files Browse the repository at this point in the history
…he new syntax (part 2)., a=testonly

Automatic update from web-platform-tests
Update some scriptlevel tests to match the new syntax (part 2). (#23538)

math-script-level-003: remove the reference left in previous commit.
math-script-level-auto-and-math-style-*: use font-size: scriptlevel(auto) and
update some assert doc.

https://github.com/mathml-refresh/mathml/issues/174
--

wpt-commits: 907d95d79df0f6d403b97ac9e494292eea7f0e9e
wpt-pr: 23538
  • Loading branch information
fred-wang authored and moz-wptsync-bot committed May 25, 2020
1 parent c13fbdb commit e5941a7
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 34 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/3746">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-math-script-level-property">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-math-style-property">
<meta name="assert" content="If math-script-level is 'auto' and the inherited value of math-style is 'display' then the computed value of math-script-level is the inherited value.">
<meta name="assert" content="If font-size is scriptlevel('auto') and the inherited value of math-style is 'display' then the internal scriptlevel is the one of its parent.">
<link rel="match" href="math-script-level-auto-and-math-style-001.tentative-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
Expand All @@ -20,7 +20,7 @@
<body>
<p>Test passes if you see a square of side 100 × 0.71^(0 − 0) = 100px.</p>
<div class="container" style="math-style: display;">
<div style="math-script-level: auto">X</div>
<div style="font-size: scriptlevel(auto)">X</div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/3746">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-math-script-level-property">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#the-math-style-property">
<meta name="assert" content="If math-script-level is 'auto' and the inherited value of math-style is 'inline' then the computed value of math-script-level is the inherited value plus one.">
<meta name="assert" content="If font-size is scriptlevel('auto') and the inherited value of math-style is 'inline' then the internal scriptlevel is the one of its parent.">
<link rel="match" href="math-script-level-auto-and-math-style-002.tentative-ref.html">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css" />
<style>
Expand All @@ -20,7 +20,7 @@
<body>
<p>Test passes if you see a square of side 500 × 0.71^(1 − 0) = 355px.</p>
<div class="container" style="math-style: inline;">
<div style="math-script-level: auto">X</div>
<div style="font-size: scriptlevel(auto)">X</div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<body>
<p>Test passes if you see a square of side 500 × 0.71^(1 − 0) = 355px.</p>
<div class="container">
<div style="math-script-level: auto">X</div>
<div style="font-size: scriptlevel(auto)">X</div>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div class="container">
<div style="math-style: display">
<div style="math-style: initial">
<div style="math-script-level: auto">X</div>
<div style="font-size: scriptlevel(auto)">X</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div style="math-style: display;">
<div>
<div>
<div style="math-script-level: auto">X</div>
<div style="font-size: scriptlevel(auto)">X</div>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
<body>
<p>Test passes if you see a square of side 12px.</p>
<div class="container"><!-- Initial size is 12px. -->
<div style="math-script-level: add(8);"><!-- Size is 12*.71^8 = 0.7749042374949131 < 1px. -->
<div style="math-script-level: add(-8);">X</div><!-- back to 12px. -->
<div style="font-size: scriptlevel(add(8));"><!-- Size is 12*.71^8 = 0.7749042374949131 < 1px. -->
<div style="font-size: scriptlevel(add(-8));">X</div><!-- back to 12px. -->
</div>
</div>
</body>
Expand Down

0 comments on commit e5941a7

Please sign in to comment.