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
MathML 4Issues affecting the MathML 4 specificationMathML CoreIssues affecting the MathML Core specificationcompatibilityIssues affecting backward compatibilitycss / html5Issues related to CSS or HTML5 interoperability
The mphantom element is inspired from LaTeX's \phantom and makes sense in a non-Web context.
In a Web context, it's really equivalent to mrow with visibility: hidden, so it's probably not very useful. Let's decide if we want to deprecate/remove it from MathML full/core.
That's a good point. It is used (I've used it) for the same reasons it is there in TeX. Since it is used, it should remain in "full", but can go from "core" if we can write a polyfill for it. I assume it would simply turn into the contents wrapped with <mrow style="visibility:hidden;"> ... </mrow>
Maybe the mrow isn't even needed? Hopefully none of the children turn visibility back on... Any other potential problems?
Yes, mphantom is implemented in WebKit/Gecko the same way as mrow but with some "visibility: hidden" in the CSS user agent stylesheet.
Indeed users actually don't need to insert an mrow, you can just put "visibility: hidden" on any MathML element to hide a MathML subtree. However, MathML defines mphantom as "mrow-like" (which implies several properties) so polyfills should really rely on mrow in general to keep the current mphantom behavior.
Yes, it's possible to turn visibility back on descendants or on the mphantom itself if the user explicitly change the corresponding CSS style. I don't think that's an issue though? We should give freedom to users to override things if they really want to.
...and since it is used a lot, I think "Core" should just say it is deprecated for now and recommend the alternative of mrow with "visibility: hidden".
I'm baffled by your comment. If something is used with some frequency, we should be very cautious about deprecating it. The full spec is not aimed at just web applications, so saying "use mrow with 'visibility: hidden'" is not practical in environments that lack CSS support.
The full spec will say what is in core and if someone is targeting only browsers, then they may make the decision that they don't want JS running to handle mphantom, but that is an author decision. They may care about more interoperability with non browser applications.
OK, ignore my last comment then. In any case, I don't care about what is in MathML full as long as what is written in MathML Core remains equivalent to "mrow + visibility: hidden".
MathML 4Issues affecting the MathML 4 specificationMathML CoreIssues affecting the MathML Core specificationcompatibilityIssues affecting backward compatibilitycss / html5Issues related to CSS or HTML5 interoperability
Activity
NSoiffer commentedon Mar 3, 2019
That's a good point. It is used (I've used it) for the same reasons it is there in TeX. Since it is used, it should remain in "full", but can go from "core" if we can write a polyfill for it. I assume it would simply turn into the contents wrapped with
<mrow style="visibility:hidden;"> ... </mrow>Maybe the
mrowisn't even needed? Hopefully none of the children turnvisibilityback on... Any other potential problems?fred-wang commentedon Mar 3, 2019
Yes, mphantom is implemented in WebKit/Gecko the same way as mrow but with some "visibility: hidden" in the CSS user agent stylesheet.
Indeed users actually don't need to insert an mrow, you can just put "visibility: hidden" on any MathML element to hide a MathML subtree. However, MathML defines mphantom as "mrow-like" (which implies several properties) so polyfills should really rely on mrow in general to keep the current mphantom behavior.
Yes, it's possible to turn visibility back on descendants or on the mphantom itself if the user explicitly change the corresponding CSS style. I don't think that's an issue though? We should give freedom to users to override things if they really want to.
fred-wang commentedon Mar 3, 2019
...and since it is used a lot, I think "Core" should just say it is deprecated for now and recommend the alternative of mrow with "visibility: hidden".
NSoiffer commentedon Mar 4, 2019
I'm baffled by your comment. If something is used with some frequency, we should be very cautious about deprecating it. The full spec is not aimed at just web applications, so saying "use mrow with 'visibility: hidden'" is not practical in environments that lack CSS support.
The full spec will say what is in core and if someone is targeting only browsers, then they may make the decision that they don't want JS running to handle mphantom, but that is an author decision. They may care about more interoperability with non browser applications.
fred-wang commentedon Mar 5, 2019
OK, ignore my last comment then. In any case, I don't care about what is in MathML full as long as what is written in MathML Core remains equivalent to "mrow + visibility: hidden".
fred-wang commentedon Mar 14, 2019
So as I understand the current status is
davidcarlisle commentedon Mar 14, 2019
I think that is good, yes.
fred-wang commentedon Jun 4, 2019
Resolved on 2019/06//03 as in #65 (comment)
Core spec updated: https://mathml-refresh.github.io/mathml-core/#mphantom