[Webkit-unassigned] [Bug 151592] New: Update CSS rules in mathml.css to adjust spacing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 24 13:27:05 PST 2015


https://bugs.webkit.org/show_bug.cgi?id=151592

            Bug ID: 151592
           Summary: Update CSS rules in mathml.css to adjust spacing
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: MathML
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: fred.wang at free.fr
                CC: alex at igalia.com, bfulgham at webkit.org,
                    cfleizach at apple.com, darin at apple.com,
                    jfernandez at igalia.com, mrobinson at webkit.org
        Depends on: 43819, 131839

In http://trac.webkit.org/changeset/124512, David Barton added the following CSS properties to avoid excessive line spacing in MathML expressions:

math { 
  -webkit-line-box-contain: glyphs replaced; 
  line-height: 0; 
} 
mtext { 
  line-height: 1.0; 
}

(the "line-height: 0;" has been removed since then, but the one for mtext preserved)

I suspect this is no longer necessary with OpenType math fonts setting the USE_TYPO_METRICS flag now that it is supported by WebKit (bug 131839). However, it's probably good to reset some CSS spacing properties, for example an issue was reported in Wikipedia for Gecko, see https://bugzilla.mozilla.org/show_bug.cgi?id=1187673.

So I'd suggest to replace the above rules with just:

math {
  line-height: normal;
  word-spacing: normal;
  letter-spacing: normal;
}

Related to that is the list of math fonts in the font-family rule. Apple engineer will still have to upgrade the pre-installed STIX fonts to version 2.0 when it is released before we can update the default font-family. As a comparison, the latest Gecko release use the following list of math fonts: "Latin Modern Math, XITS Math, Cambria Math, TeX Gyre Bonum Math, TeX Gyre Pagella Math, TeX Gyre Schola, TeX Gyre Termes Math, STIX Math, Asana Math, STIXGeneral, DejaVu Serif, DejaVu Sans, serif"

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151124/c4207251/attachment.html>


More information about the webkit-unassigned mailing list