diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js
index 825be8f02..44bdce4a7 100644
--- a/unpacked/jax/output/CommonHTML/jax.js
+++ b/unpacked/jax/output/CommonHTML/jax.js
@@ -68,8 +68,8 @@
"margin": "1em 0",
padding: 0
},
- ".mjx-chtml[tabindex]:focus, *:focus .mjx-chtml[tabindex]": {
- display: "inline-table" // see issue #1282
+ ".mjx-chtml[tabindex]:focus, body :focus .mjx-chtml[tabindex]": {
+ display: "inline-table" // see issues #1282 and #1338
},
".mjx-math": {
diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js
index ea29cbac9..bcd6e4fd8 100644
--- a/unpacked/jax/output/HTML-CSS/jax.js
+++ b/unpacked/jax/output/HTML-CSS/jax.js
@@ -266,9 +266,8 @@
},
// Focus elements for keyboard tabbing.
- ".MathJax:focus, *:focus .MathJax": {
- display:"inline-table", // see issue #1282
- "border-spacing":"3px", margin:"-3px"
+ ".MathJax:focus, body :focus .MathJax": {
+ display:"inline-table" // see issues #1282 and #1338
},
".MathJax_Display": {