Confirmed users
226
edits
No edit summary |
No edit summary |
||
| Line 8: | Line 8: | ||
- "Another group of attributes, such as stretchy and form, are computed from operator dictionary information, position in the enclosing mrow, and other similar data. [...]". This can be handle the same way as the second case, except that we have to take into account other data for the final computation. | - "Another group of attributes, such as stretchy and form, are computed from operator dictionary information, position in the enclosing mrow, and other similar data. [...]". This can be handle the same way as the second case, except that we have to take into account other data for the final computation. | ||
Note: attributes from the first category and general attributes (like id) are indicated in bold. They seem the most important attributes but the MathML testsuite also uses linethickness, maxsize, minsize, accent, accentunder, longdivstyle, decimalpoint and some indentation attributes. | |||
{| class="standard-table" border="1" style="border-collapse: collapse" | {| class="standard-table" border="1" style="border-collapse: collapse" | ||
| Line 16: | Line 18: | ||
! Suggestion | ! Suggestion | ||
|- | |- | ||
| id | | '''id''' | ||
| Establishes a unique identifier associated with the element to support | | Establishes a unique identifier associated with the element to support | ||
linking, cross-references and parallel markup. | linking, cross-references and parallel markup. | ||
| Line 22: | Line 24: | ||
| / | | / | ||
|- | |- | ||
| class | | '''class''' | ||
| Associates the element with a set of style classes for use with XSLT and | | Associates the element with a set of style classes for use with XSLT and | ||
CSS21. | CSS21. | ||
| Line 28: | Line 30: | ||
| / | | / | ||
|- | |- | ||
| style | | '''style''' | ||
| Associates style information with the element for use with XSLT and CSS21. | | Associates style information with the element for use with XSLT and CSS21. | ||
| Implemented | | Implemented | ||
| / | | / | ||
|- | |- | ||
| href | | '''href''' | ||
| Can be used to establish the element as a hyperlink to the specfied URI. | | Can be used to establish the element as a hyperlink to the specfied URI. | ||
| Implemented | | Implemented | ||
| Line 48: | Line 50: | ||
| / | | / | ||
|- | |- | ||
| mathcolor | | '''mathcolor''' | ||
| Specifies the foreground color to use when drawing the components of this | | Specifies the foreground color to use when drawing the components of this | ||
element. | element. | ||
| Line 54: | Line 56: | ||
| / | | / | ||
|- | |- | ||
| mathbackground | | '''mathbackground''' | ||
| Specifies the background color to be used to fill in the bounding box of the | | Specifies the background color to be used to fill in the bounding box of the | ||
element and its children. Contrary to MathML 2, this does not specify a | element and its children. Contrary to MathML 2, this does not specify a | ||
| Line 61: | Line 63: | ||
| / | | / | ||
|- | |- | ||
| scriptlevel | | '''scriptlevel''' | ||
| Changes the scriptlevel in effect for the children. | | Changes the scriptlevel in effect for the children. | ||
| Implemented via the CSS property "-moz-script-level" | | Implemented via the CSS property "-moz-script-level" | ||
| / | | / | ||
|- | |- | ||
| displaystyle | | '''displaystyle''' | ||
| Changes the displaystyle in effect for the children. | | Changes the displaystyle in effect for the children. | ||
| Implemented via a mPresentationData on the MathML frames. | | Implemented via a mPresentationData on the MathML frames. | ||
| Line 72: | Line 74: | ||
in mPresentationData | in mPresentationData | ||
|- | |- | ||
| scriptsizemultiplier | | '''scriptsizemultiplier''' | ||
| Specifies the multiplier to be used to adjust font size due to changes in | | Specifies the multiplier to be used to adjust font size due to changes in | ||
scriptlevel. | scriptlevel. | ||
| Line 78: | Line 80: | ||
| / | | / | ||
|- | |- | ||
| scriptminsize | | '''scriptminsize''' | ||
| Specifies the minimum font size allowed due to changes in scriptlevel. | | Specifies the minimum font size allowed due to changes in scriptlevel. | ||
| Implemented via the CSS property "-moz-script-min-size" | | Implemented via the CSS property "-moz-script-min-size" | ||
| Line 183: | Line 185: | ||
| Replace GetAttribute by a new CSS property "-moz-mstyle-depth". | | Replace GetAttribute by a new CSS property "-moz-mstyle-depth". | ||
|- | |- | ||
| dir | | '''dir''' | ||
| Specifies the overall directionality ltr (Left To Right) or rtl | | Specifies the overall directionality ltr (Left To Right) or rtl | ||
(Right To Left) to use to layout the children of the row ; | (Right To Left) to use to layout the children of the row ; | ||
| Line 353: | Line 355: | ||
| Replace GetAttribute by a new CSS property "-moz-mstyle-lspace" | | Replace GetAttribute by a new CSS property "-moz-mstyle-lspace" | ||
|- | |- | ||
| mathsize | | '''mathsize''' | ||
| Specifies the size to display the token content. | | Specifies the size to display the token content. | ||
| Implemented in nsMathMLElement via the CSS property "font-size". | | Implemented in nsMathMLElement via the CSS property "font-size". | ||
| / | | / | ||
|- | |- | ||
| mathvariant | | '''mathvariant''' | ||
| Specifies the logical class of the token | | Specifies the logical class of the token | ||
| Partially Implemented in mathml.css (see {{bug|114365}}). Also, relies on the | | Partially Implemented in mathml.css (see {{bug|114365}}). Also, relies on the | ||
| Line 521: | Line 523: | ||
| Replace GetAttribute by a new CSS property "-moz-mstyle-width" | | Replace GetAttribute by a new CSS property "-moz-mstyle-width" | ||
|- | |- | ||
| fontfamily | | '''fontfamily''' | ||
| Should be the name of a font that may be available to a MathML renderer, or a | | Should be the name of a font that may be available to a MathML renderer, or a | ||
CSS font specification. Does not apply to mglyph descendants. | CSS font specification. Does not apply to mglyph descendants. | ||
| Line 528: | Line 530: | ||
| Add a warning ({{bug|553917}}) and remove the support in future. | | Add a warning ({{bug|553917}}) and remove the support in future. | ||
|- | |- | ||
| fontweight | | '''fontweight''' | ||
| Specified the font weight for the token. | | Specified the font weight for the token. | ||
| Deprecated in favor of mathvariant. | | Deprecated in favor of mathvariant. | ||
| Line 536: | Line 538: | ||
| Add a warning and remove the support in future. | | Add a warning and remove the support in future. | ||
|- | |- | ||
| fontstyle | | '''fontstyle''' | ||
| Specified the size for the token. | | Specified the size for the token. | ||
| Deprecated in favor of mathvariant. | | Deprecated in favor of mathvariant. | ||
| Line 544: | Line 546: | ||
| Add a warning and remove the support in future. | | Add a warning and remove the support in future. | ||
|- | |- | ||
| fontsize | | '''fontsize''' | ||
| Specified the size for the token. | | Specified the size for the token. | ||
| Deprecated in favor of mathsize. | | Deprecated in favor of mathsize. | ||
| Line 550: | Line 552: | ||
| Add a warning ({{bug|553917}}) and remove the support in future. | | Add a warning ({{bug|553917}}) and remove the support in future. | ||
|- | |- | ||
| color | | '''color''' | ||
| Specified the color for the token. | | Specified the color for the token. | ||
| Deprecated in favor of mathcolor. | | Deprecated in favor of mathcolor. | ||
| Line 556: | Line 558: | ||
| Add a warning ({{bug|553917}}) and remove the support in future. | | Add a warning ({{bug|553917}}) and remove the support in future. | ||
|- | |- | ||
| background | | '''background''' | ||
| Specified the background color to be used to fill in the bounding box of the | | Specified the background color to be used to fill in the bounding box of the | ||
element and its children. | element and its children. | ||