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

empty element test is wrong #163

Closed
NSoiffer opened this issue Oct 15, 2019 · 2 comments
Closed

empty element test is wrong #163

NSoiffer opened this issue Oct 15, 2019 · 2 comments

Comments

@NSoiffer
Copy link
Contributor

The resolution of #136 means that the test/code in presentation-markup/scripts/empty-underover.html is wrong. Those tests assume that having no children means the element takes 0 space. Given that these elements retain their layout based on #136 resolution, there are some min gaps and shifts that cause the elements to have some size (true for msub, munder, etc.)

@fred-wang
Copy link
Contributor

Just for the record, we haven't decided anything precisely in #136: "Always render something to the user, at minimum mrow-like layout. Experiment more to see if we can do something that does not alter the visual rendering (Rob already did that for mfrac)."

I'm personally in favor of keeping mrow-like layout for now

@davidcarlisle davidcarlisle transferred this issue from w3c/mathml Aug 16, 2022
@fred-wang
Copy link
Contributor

This can be closed. https://wpt.fyi/results/mathml/presentation-markup/scripts/empty-underover.html pass in all browsers:

  • Firefox 106 and Chrome 109 follows the spec and perform layout as an mrow with empty scripts.
  • WebKit perform layout as an empty box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants