Work around negative space bug in Chrome (#1194)

* Work around negative space bug in Chrome

Fix #984

The screenshot test is still somewhat defective, showing a space before
the "post" text (a period).  This seems limited to the screenshotter, however,
as it works fine in the tester via
http://localhost:7936/?text=%5Cfbox%7B%5C%241%2C%5C!000%2C%5C!000%7D%5CKaTeX&display=0&after=.

* Update screenshots

* Switch to inherited `width: min-content`
This commit is contained in:
Erik Demaine
2018-03-09 11:38:25 -04:00
committed by Kevin Barabash
parent 06e0393abc
commit 20b5a58451
6 changed files with 6 additions and 0 deletions

View File

@@ -25,6 +25,9 @@
// Prevent a rendering bug that misplaces \vec in Chrome.
text-rendering: auto;
// Fix width of containers of negative spaces, working around Chrome bug.
width: min-content;
// Prevent background resetting on elements in Windows's high-contrast
// mode, while still allowing background/foreground setting on root .katex
* { -ms-high-contrast-adjust: none !important; }