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

fix(layout): add scrolling container around block math elements #11856

Merged
merged 2 commits into from
Sep 25, 2024

Conversation

pepelsbey
Copy link
Member

@pepelsbey pepelsbey commented Sep 25, 2024

Summary

Adds <figure class="table-container"> around <math display="block"> to contain oversized formulas, just like it does for oversized tables. See the same PR to rari.

💡 In this case, $("table, math[display=block]") actually selects both tables and math blocks.

Screenshots

Before

before.mov

After

after.mov

Additional details

In the next step, it would make sense to rename it to overflow-container since it’s not exclusive to tables anymore.

@pepelsbey pepelsbey requested a review from a team as a code owner September 25, 2024 10:19
@caugner caugner changed the title Add a scrolling container around block math elements fix(layout): add scrolling container around block math elements Sep 25, 2024
@caugner caugner merged commit 69b2cc9 into mdn:main Sep 25, 2024
11 of 12 checks passed
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

Successfully merging this pull request may close these issues.

2 participants