You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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).
Activity
NSoiffer commentedon Jun 21, 2022
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).
global scriptlevel for #388
Merge pull request #531 from w3c/scriptlevel
davidcarlisle commentedon Mar 28, 2025
PR is merged, closing here.