• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Khan / perseus / 5416555274
69%

Build:
DEFAULT BRANCH: main
Ran 29 Jun 2023 08:46PM UTC
Jobs 2
Files 517
Run time 20s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
5416555274

push

github

web-flow
Fix positioning of Graphie labels when MathJax is used to render TeX (#594)

## Summary:
There was a race between the code in Perseus that positions Graphie
labels and the code in webapp that updates MathJax CSS. If Perseus
measured the label's dimensions before MathJax updated its CSS, then the
measured dimensions of the label would be wrong and the label would get
positioned incorrectly.

To fix this, we measure and position the label when the TeX component
calls its onRender callback. The MathJax component doesn't call this
callback until the CSS is up to date.

Issue: https://khanacademy.atlassian.net/browse/LC-934

Test plan:

Follow the instructions in webapp to install a dev build of Perseus.

Visit
/math/arithmetic-home/multiply-divide/division-intro/e/dividing-with-visuals?devflagk=mathjax3
and run through the exercise several times. You should not see the
duplicated label problem described in the issue linked above.  (Note
that the labels are still duplicated; that's a problem in the content
that we can't fix.  But now they are positioned exactly on top of each
other, so the duplication is not visible.)

Author: benchristel

Reviewers: nixterrimus

Required Reviewers:

Approved By: nixterrimus

Checks: ✅ finish_coverage, ✅ Publish npm snapshot (ubuntu-latest, 16.x), ✅ Lint, Typecheck, and Test (ubuntu-latest, 16.x), ✅ Extract i18n strings (ubuntu-latest, 16.x), ✅ Cypress Coverage (ubuntu-latest, 16.x), ✅ Jest Coverage (ubuntu-latest, 16.x), ✅ Check builds for changes in size (ubuntu-latest, 16.x), ✅ Check for .changeset file (ubuntu-latest, 16.x), ✅ gerald

Pull Request URL: https://github.com/Khan/perseus/pull/594

7541 of 16333 branches covered (46.17%)

Branch coverage included in aggregate %.

20101 of 44488 relevant lines covered (45.18%)

1003.56 hits per line

Subprojects
ID Flag name Job ID Ran Files Coverage
1 cypress 5416555274.1 29 Jun 2023 08:46PM UTC 0
26.39
GitHub Action Run
2 jest 5416555274.2 29 Jun 2023 08:54PM UTC 0
63.06
GitHub Action Run
Source Files on build 5416555274
Detailed source file information is not available for this build.
  • Back to Repo
  • 12b65f5e on github
  • Prev Build on main (#5412947485)
  • Next Build on main (#5417303103)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc