Skip to content

Commit

Permalink
Merge pull request #266 from w3c/math-auto
Browse files Browse the repository at this point in the history
define math-auto by reference to css-text-4 for #246
  • Loading branch information
NSoiffer authored Nov 25, 2024
2 parents bff587f + f90633a commit 1a8c532
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ <h4>Identifier <code>&lt;mi&gt;</code></h4>
<p>The layout algorithm is the same as the [^mtext^] element. The
<a>user agent stylesheet</a>
must contain the following property in order to implement automatic
italic via the text-transform value introduced in <a href="#new-text-transform-values"></a>:
italic via the text-transform value introduced in <a href="#math-auto-transform"></a>:
</p>
<pre class="css" data-include="user-agent-stylesheet/mi.css"></pre>

Expand Down Expand Up @@ -1357,7 +1357,7 @@ <h4>Identifier <code>&lt;mi&gt;</code></h4>
<div class="example" id="mi-example">
<p>In the following example, [^mi^] is used to render
variables and function names. Note that per
<a href="#new-text-transform-values"></a> the default
<a href="#math-auto-transform"></a> the default
style <code>text-transform: math-auto</code> has
no effect on the first <code>&lt;mi&gt;</code> ("cos" is made of three characters),
makes the second <code>&lt;mi&gt;</code> render as math italic ("c" is made of a single
Expand Down Expand Up @@ -4799,26 +4799,11 @@ <h3>The <code>display: block math</code>
<img src="examples/example-display.png" alt="display example">
</div>
</section>
<section id="new-text-transform-values">
<h3>New <code>text-transform</code> value</h3>
<section id="math-auto-transform">
<h3>The <code>math-auto</code> transform</h3>
<p>The <a data-xref-type="css-property">text-transform</a> property
from <a data-cite="CSS-TEXT-3"></a>
is extended with a new value:
</p>
<table class="def propdef partial" data-link-for-hint="text-transform">
<tbody>
<tr>
<th>Name:</th>
<td><a class="css" data-xref-type="css-property" id="ref-for-propdef-text-transform">text-transform</a>
</td>
</tr>
<tr class="value">
<th><a data-cite="CSS-VALUES-4#value-defs">New value:</a></th>
<td class="prod">math-auto</td>
</tr>
</tbody>
</table>
<p>
from <a data-cite="CSS-TEXT-4"></a>
has a new value `math-auto`.
On text nodes containing a single character, if the computed value
is <code>math-auto</code> and the character is present in the
"Original" column of <a href="#italic-mappings"></a>
Expand Down

0 comments on commit 1a8c532

Please sign in to comment.