Changeset 150264 in webkit


Ignore:
Timestamp:
May 17, 2013 9:26:11 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Bad spacing inside MathML formulas when text-indent is specified
https://bugs.webkit.org/show_bug.cgi?id=106600

Patch by Frédéric Wang <fred.wang@free.fr> on 2013-05-17
Reviewed by Martin Robinson.

Source/WebCore:

When MathML is used in a HTML page that modifies the CSS text-indent,
large gaps appear inside the mathematical expressions. Resetting it to
0 on the math root (as Gecko does) fixes the issue.

Tests: mathml/presentation/text-indent.html

mathml/presentation/text-indent-expected.html

  • css/mathml.css:

(math): reset text-indent to its default value.

LayoutTests:

New test to verify that the text-indent property is reset to 0 on
the MathML root.

  • mathml/presentation/text-indent-expected.html: Added.
  • mathml/presentation/text-indent.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r150260 r150264  
     12013-05-17  Frédéric Wang  <fred.wang@free.fr>
     2
     3        Bad spacing inside MathML formulas when text-indent is specified
     4        https://bugs.webkit.org/show_bug.cgi?id=106600
     5
     6        Reviewed by Martin Robinson.
     7
     8        New test to verify that the text-indent property is reset to 0 on
     9        the MathML root.
     10
     11        * mathml/presentation/text-indent-expected.html: Added.
     12        * mathml/presentation/text-indent.html: Added.
     13
    1142013-05-16  Jer Noble  <jer.noble@apple.com>
    215
  • trunk/Source/WebCore/ChangeLog

    r150263 r150264  
     12013-05-17  Frédéric Wang  <fred.wang@free.fr>
     2
     3        Bad spacing inside MathML formulas when text-indent is specified
     4        https://bugs.webkit.org/show_bug.cgi?id=106600
     5
     6        Reviewed by Martin Robinson.
     7
     8        When MathML is used in a HTML page that modifies the CSS text-indent,
     9        large gaps appear inside the mathematical expressions. Resetting it to
     10        0 on the math root (as Gecko does) fixes the issue.
     11
     12        Tests: mathml/presentation/text-indent.html
     13               mathml/presentation/text-indent-expected.html
     14
     15        * css/mathml.css:
     16        (math): reset text-indent to its default value.
     17
    1182013-05-17  Alberto Garcia  <agarcia@igalia.com>
    219
  • trunk/Source/WebCore/css/mathml.css

    r136409 r150264  
    44    -webkit-line-box-contain: glyphs replaced;
    55    line-height: 0;
     6    text-indent: 0;
    67}
    78mtext {
Note: See TracChangeset for help on using the changeset viewer.