Skip to content

Commit c1fe357

Browse files
committed
Make SVG style handling be the same as HTML-CSS (don't inherit styles). This needs to be reworked so that some styles do get inherited
1 parent 3a2b03a commit c1fe357

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

config/TeX-AMS-MML_SVG-full.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jax/output/SVG/jax.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

unpacked/jax/output/SVG/jax.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1023,10 +1023,9 @@
10231023
},
10241024

10251025
SVGgetStyles: function () {
1026-
var style = this.Get("style");
1027-
if (style) {
1026+
if (this.style) {
10281027
var span = HTML.Element("span");
1029-
span.style.cssText = style;
1028+
span.style.cssText = this.style;
10301029
this.styles = {border:SVG.getBorders(span), padding:SVG.getPadding(span)}
10311030
if (span.style.fontSize) {this.styles.fontSize = span.style.fontSize}
10321031
if (span.style.color) {this.styles.color = span.style.color}

0 commit comments

Comments
 (0)