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

Safari does not shrink down protruding KaTeX math block #159

Closed
yhatt opened this issue Apr 26, 2020 · 1 comment
Closed

Safari does not shrink down protruding KaTeX math block #159

yhatt opened this issue Apr 26, 2020 · 1 comment
Labels
bug Something isn't working upstream Caused in upstream, not in this repo wontfix This will not be worked on

Comments

@yhatt
Copy link
Member

yhatt commented Apr 26, 2020

In Safari, very long math block won't shrink down by auto-scaling in Marp Core.

<style>
svg { outline: 3px solid red; }
</style>

$$
f(x)=a+b+c+d+e+f+g+h+i+j+k+l
$$

$$
f(x)=a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q+r+s
$$

$$
f(x)=a+b+c+d+e+f+g+h+i+j+k+l+m+n+o+p+q+r+s+t+u+v+w+x+y+z
$$
Safari Chrome Firefox
marp-bug-safari marp-bug-chrome marp-bug-firefox

As indicated by outlines for <svg>, DOM layout for auto-scaling don't protrude. Simply Safari's long-stucked bug over 11 years has affected to nested <foreignObject> rendering.

Curiously fitting header and code block won't protrude even in Safari. I suppose rendering of the complex contents may not be working.

@yhatt yhatt added the bug Something isn't working label Apr 26, 2020
@yhatt
Copy link
Member Author

yhatt commented Jun 8, 2020

It seems to be fixed in MathJax math block (implemented in v1.2.0). We can close this in the near future, if MathJax rendering would be a primary option.

@yhatt yhatt changed the title Safari does not shrink down protruding math block Safari does not shrink down protruding KaTeX math block Jun 9, 2020
@yhatt yhatt mentioned this issue Jul 19, 2021
6 tasks
@yhatt yhatt added the upstream Caused in upstream, not in this repo label Nov 22, 2021
@yhatt yhatt added the wontfix This will not be worked on label Feb 10, 2023
@yhatt yhatt closed this as not planned Won't fix, can't repro, duplicate, stale Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream Caused in upstream, not in this repo wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant