From e7c11c969af35ce54ab2ec0079f7ba8553ea9394 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Thu, 17 Dec 2015 17:00:42 -0500 Subject: [PATCH] Fix focus problems due to overly aggressive CSS, and done add space around HTML-CSS output (which was causing problems). --- unpacked/jax/output/CommonHTML/jax.js | 4 ++-- unpacked/jax/output/HTML-CSS/jax.js | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js index 825be8f02b..44bdce4a7d 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 ea29cbac92..bcd6e4fd8c 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": {