Skip to content

Commit

Permalink
Remove some notes for MathML global attributes. (#18599)
Browse files Browse the repository at this point in the history
This is a follow-up of [1]:

- Comments that displaystyle/scriptlevel/mathvariant
  are implemented via CSS are moved to
  browser-compat-data [2].

- mathsize: empty section is removed.

- mathvariant: recommendation to use Unicode characters is
  removed, since it's repeating a note above on the page.
  The vague statement about partial implementation in
  Firefox 28 as well as the comment to have appropriate
  fonts are removed, as they are not really important.

[1] #17812
[2] mdn/browser-compat-data#17067
  • Loading branch information
fred-wang authored Jul 21, 2022
1 parent 1601d4f commit 18a8933
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ In this example, an [munder](/en-US/docs/Web/MathML/Element/munder) element is u
- `false`
-: Sets the display style to `compact`.

## Notes on MathML versions

- MathML Core relies on `math-style` to implement the `displaystyle` attribute, but implementations of older MathML versions may follow a different approach to implement similar behavior.

## Specifications

{{Specifications}}
Expand Down
2 changes: 0 additions & 2 deletions files/en-us/web/mathml/global_attributes/mathsize/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ The **`mathsize`** [global attribute](/en-US/docs/Web/MathML/Global_attributes)
- {{cssxref("<percentage>")}}
- : A positive {{cssxref("<percentage>")}} value, relative to the parent element's font size.

## Notes on MathML versions

## Specifications

{{Specifications}}
Expand Down
7 changes: 0 additions & 7 deletions files/en-us/web/mathml/global_attributes/mathvariant/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,13 @@ which are by convention italic, no special classes are used by default.
- `stretched`
-: Try and use stretched characters e.g. "𞹢".

## Notes on MathML versions

- `mathvariant` values other than `normal` were designed for backward compatibility. Authors are encouraged to instead directly use the corresponding Unicode characters from the [Mathematical Alphanumeric Symbols](https://en.wikipedia.org/wiki/Mathematical_Alphanumeric_Symbols).

- MathML Core relies on `text-transform` to implement the `mathvariant` attribute, but implementations of older MathML versions may follow a different approach to implement similar behavior.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
On Firefox, some `mathvariant` values are only implemented starting with Firefox 28 and require appropriate [math fonts](/en-US/docs/Web/MathML/Fonts).

## See also

Expand Down
4 changes: 0 additions & 4 deletions files/en-us/web/mathml/global_attributes/scriptlevel/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,6 @@ If `<U>` is an unsigned [integer](/en-US/docs/Web/CSS/integer) (i.e. with prefix
-: Sets the `math-depth` to value `add(-<U>)`. This will scale up
`font-size` on the element `<U>` times.

## Notes on MathML versions

- MathML Core relies on `math-depth` to implement the `scriptlevel` attribute, but implementations of older MathML versions may follow a different approach to implement similar side-effect on the `font-size` within mathematical formulas.

## Specifications

{{Specifications}}
Expand Down

0 comments on commit 18a8933

Please sign in to comment.