Skip to content

Commit 58bea08

Browse files
Merge pull request #564 from NSoiffer/mstyle
rewrote some parts of mstyle
2 parents 75e430f + 938856f commit 58bea08

File tree

1 file changed

+25
-18
lines changed

1 file changed

+25
-18
lines changed

src/presentation-markup.html

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4207,24 +4207,31 @@ <h5 id="presm_mstyle_desc">Description</h5>
42074207
<code class="attribute">mathsize</code>, which can only be set on token elements (or on
42084208
<code class="element">mstyle</code> itself).</p>
42094209

4210-
<p>MathML specifies that when
4211-
the attributes <code class="attribute">height</code>, <code class="attribute">depth</code> or <code class="attribute">width</code>
4212-
are specified on an <code class="element">mstyle</code> element, they apply only to
4213-
<code class="element">mspace</code> elements, and not to the corresponding attributes of
4214-
<code class="element">mglyph</code>, <code class="element">mpadded</code>, or <code class="element">mtable</code>. Similarly, when
4215-
<code class="attribute">rowalign</code> or <code class="attribute">columnalign</code>
4216-
are specified on an <code class="element">mstyle</code> element, they apply only to the
4217-
<code class="element">mtable</code> element, and not the <code class="element">mtr</code>,
4218-
<code class="element">mtd</code>, and <code class="element">maligngroup</code> elements.
4219-
When the <code class="attribute">lspace</code> attribute is set with <code class="element">mstyle</code>, it
4220-
applies only to the <code class="element">mo</code> element and not to <code class="element">mpadded</code>.
4221-
To be consistent, the <code class="attribute">voffset</code> attribute of the
4222-
<code class="element">mpadded</code> element can not be set on <code class="element">mstyle</code>.
4223-
When the <code class="attribute">align</code> attribute is set with <code class="element">mstyle</code>, it
4224-
applies only to the <code class="element">munder</code>, <code class="element">mover</code>, and <code class="element">munderover</code>
4225-
elements, and not to the <code class="element">mtable</code> and <code class="element">mstack</code> elements.
4226-
The attributes <code class="attribute">src</code> and <code class="attribute">alt</code> on <code class="element">mglyph</code>,
4227-
and <code class="attribute">actiontype</code> on <code class="element">maction</code>, cannot be set on <code class="element">mstyle</code>.
4210+
<p>Several MathML elements have the same attribute names as other elements.
4211+
For those elements, the following rules apply:
4212+
<ul>
4213+
<li> when the attributes <code class="attribute">height</code>, <code class="attribute">depth</code> or <code class="attribute">width</code>
4214+
are specified on an <code class="element">mstyle</code> element, they apply only to
4215+
<code class="element">mspace</code> elements, and not to the corresponding attributes of
4216+
<code class="element">mglyph</code>, <code class="element">mpadded</code>, or <code class="element">mtable</code>;
4217+
</li>
4218+
<li>when the attributes <code class="attribute">rowalign</code> or <code class="attribute">columnalign</code>
4219+
are specified on an <code class="element">mstyle</code> element, they apply only to the
4220+
<code class="element">mtable</code> element, and not the <code class="element">mtr</code> and
4221+
<code class="element">mtd</code> elements;
4222+
</li>
4223+
<li> when the <code class="attribute">lspace</code> attribute is set with <code class="element">mstyle</code>, it
4224+
applies only to the <code class="element">mo</code> element and not to <code class="element">mpadded</code>.
4225+
To be consistent, the <code class="attribute">voffset</code> attribute of the
4226+
<code class="element">mpadded</code> element can not be set on <code class="element">mstyle</code>;
4227+
</li>
4228+
<li> when the <code class="attribute">align</code> attribute is set with <code class="element">mstyle</code>, it
4229+
applies only to the <code class="element">munder</code>, <code class="element">mover</code>, and <code class="element">munderover</code>
4230+
elements, and not to the <code class="element">mtable</code> and <code class="element">mstack</code> elements.
4231+
</li>
4232+
</ul>
4233+
4234+
Attributes such as <code class="attribute">src</code> which do not have default values be cannot be set on <code class="element">mstyle</code>.
42284235
</p>
42294236

42304237
<p>As a presentation element, <code class="element">mstyle</code> directly accepts

0 commit comments

Comments
 (0)