Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[CommonHTML] [Firefox] Anomaly with spacing before and after \text #1718
The issue can be seen in https://cdi2tp.math.tecnico.ulisboa.pt/texto/10 with Firefox 52 on Linux Mint. This may be very browser, version, OS,..., specific problem. Absent from Firefox 51 on Windows or Firefox 52 on Android.
Spacing after the phrase "Existe um caminho unindo" in a displayed formula has disappeared although you can see it on mouseover.
The issue is not restricted to Firefox. Here's what's going on: because you are using
One possible solution might be to have CommonHTML not set the width for items over a certain size, where the inaccuracy in the em-size measurements are magnified to such an extent that it becomes problematic, as in this case. Or a second measurement could be taken after the size is set to see how far off it is (though that would cause an additional reflow performance hit).