Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpretation of new display: math/inline-math and compatibility with block/inline #214

Closed
fred-wang opened this issue May 21, 2020 · 1 comment
Labels
css / html5 Issues related to CSS or HTML5 interoperability MathML Core Issues affecting the MathML Core specification need polyfill Issues requiring implementation changes

Comments

@fred-wang
Copy link

This is from the hackfest notes by @bkardell @fantasai ; originally #171 but it got off topic, so I'm opening a clean issue.

Need to also evaluate Web-compat of introducing display: math, in case authors are already setting display: block etc. and expecting no change to internal contents.

Also cc'ing @bfgeek who proposed adding inline-math in addition to math.

The idea is when "display: math" or "display: inline-math" is used, the math layout described in MathML Core is performed. In other cases, layout is described by other CSS specifications, allowing authors to override the default layout of MathML elements.

When people explicitly set "display: block" or "display: inline" then the spec says to use the corresponding CSS layout. Is there any compat risk that people are doing that? On all elements or only the <math> root? If so, should we make display computes to "math" and "inline-math" for these values?

Additionally, "display: inline-math" on all but the <math> root should probably compute to "display: math".

Maybe more?

@fred-wang fred-wang added MathML Core Issues affecting the MathML Core specification css / html5 Issues related to CSS or HTML5 interoperability need tests Issues related to writing WPT tests need resolution Issues needing resolution at MathML Refresh CG meeting need specification update Issues requiring specification changes need polyfill Issues requiring implementation changes labels May 21, 2020
@fred-wang fred-wang removed need tests Issues related to writing WPT tests need resolution Issues needing resolution at MathML Refresh CG meeting need specification update Issues requiring specification changes labels Jun 9, 2020
@fred-wang
Copy link
Author

From MathML Core Meeting of June 8, 2020:

Resolved: we discussed and felt that this shouldn’t be a problem because there is existing incompatibility now.

Regarding the separate issue:

Additionally, "display: inline-math" on all but the root should probably compute to "display: math".

I think the spec currently defines MathML layout for these two cases, so it looks fine as it. Let's see what the CSS people say when we propose it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css / html5 Issues related to CSS or HTML5 interoperability MathML Core Issues affecting the MathML Core specification need polyfill Issues requiring implementation changes
Projects
None yet
Development

No branches or pull requests

1 participant