Skip to content

scriptlevel and displaystyle #388

Closed
Closed

Description

@davidcarlisle

https://w3c.github.io/mathml/#presm_scriptlevel

says of scriptlevel and displaystyle attributes:

They also may be set explicitly via the displaystyle and scriptlevel attributes on the mstyle element or the displaystyle attribute of mtable. In all other cases, they are inherited from the node's parent.

similarly the schema "adds" these to <mstyle>

https://w3c.github.io/mathml/#parsing_mstyle.specificattributes

and mstyle attribute table lists them:

https://w3c.github.io/mathml/#presm_mstyle_attrs

However all these descriptions come from Mathml3.

Core makes them global

https://w3c.github.io/mathml-core/#global-attributes

so in Full they are common to all Presentation elements.

https://w3c.github.io/mathml/#presm_presatt

So should not be described as specific to mstyle.


This is assuming we are happy to relax the use of scriptlevel in this way. (I do not recall why it was restricted in earlier versions).

If instead we want to keep the restriction, then the most natural place to do that would be to change Core so these are not global attributes there, but keeping Core as it is, and changing Full to match looks OK to me.

Activity

  1. added
    MathML 4
    on Jun 19, 2022
  2. NSoiffer commented on Jun 21, 2022

    @NSoiffer
    Contributor

    I think the reason to avoid them on all elements was because that we didn't need to think about how they interreacted with an element that changed the scriptlevel. Putting all that logic on/isolating it to mstyle seemed easiest for the spec and implementations.

    It seems safe to change them to be global, but we need to say that the new value overrides the existing value on the current element, not on the any children that change it (they make use of the new value as part of their changes).

  3. added
    need specification update
    on Nov 14, 2024
  4. added a commit that references this issue on Mar 15, 2025
  5. added a commit that references this issue on Mar 28, 2025
  6. davidcarlisle commented on Mar 28, 2025

    @davidcarlisle
    CollaboratorAuthor

    PR is merged, closing here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

MathML 4need specification update

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions