From 415be7eaf76f82186b962264b6f2c80e9477c12a Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 17 Oct 2015 23:35:24 -0400 Subject: [PATCH] Add explicit table border-spacing since Firefox seems to need this to avoid too large a space around the math when focusing. If the spacing is too small, it seems that Firefox fails to treat the inlein-table as a table, so use 3px and use the margin to remove it so there is no change in position. --- unpacked/jax/output/HTML-CSS/jax.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js index bc960f64f..a7574dbbd 100644 --- a/unpacked/jax/output/HTML-CSS/jax.js +++ b/unpacked/jax/output/HTML-CSS/jax.js @@ -267,7 +267,8 @@ // Focus elements for keyboard tabbing. ".MathJax:focus, *:focus .MathJax": { - display:"inline-table" // see issue #1282 + display:"inline-table", // see issue #1282 + "border-spacing":"3px", margin:"-3px" }, ".MathJax_Display": {