Test Math Resize Persistence When Editing

Test Scenario

This test verifies that when you resize math in the editor and then click on it to edit it, when it re-renders it remembers the size it was resized to.

Step 1: A math element with resize dimensions is already inserted below
Step 2: Hover over the math equation to see it has been resized (150px × 75px)
Step 3: Click on the math element to edit it
Step 4: The math should convert to editable LaTeX: $E=mc^2$
Step 5: Edit the LaTeX (e.g., change to $E=mc^3$)
Step 6: Type the closing $ to re-render the math
Expected Result: The math should re-render with the SAME size (150px × 75px)

Editor

Test Instructions

  1. Observe the resized math equation above (it should be larger than normal)
  2. Hover over it to see the green resize handles confirming it's 150px × 75px
  3. Click on the equation to edit it
  4. Change mc^2 to mc^3 (or any other change)
  5. Type the closing $ to re-render
  6. Verify the equation keeps its 150px × 75px size (hover to see resize handles)