Title: [159035] trunk
Revision
159035
Author
[email protected]
Date
2013-11-10 17:58:06 -0800 (Sun, 10 Nov 2013)

Log Message

CSS direction must be reset to ltr on <math> element.
<https://webkit.org/b/124121>

Patch by Frédéric Wang <[email protected]> on 2013-11-10
Reviewed by Darin Adler.

Source/WebCore:

Test: mathml/presentation/direction.html

* css/mathml.css:
(math): set direction: ltr; on the <math> element.

LayoutTests:

* mathml/presentation/direction-expected.html: Added.
* mathml/presentation/direction.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (159034 => 159035)


--- trunk/LayoutTests/ChangeLog	2013-11-11 00:22:38 UTC (rev 159034)
+++ trunk/LayoutTests/ChangeLog	2013-11-11 01:58:06 UTC (rev 159035)
@@ -1,3 +1,13 @@
+2013-11-10  Frédéric Wang  <[email protected]>
+
+        CSS direction must be reset to ltr on <math> element.
+        <https://webkit.org/b/124121>
+
+        Reviewed by Darin Adler.
+
+        * mathml/presentation/direction-expected.html: Added.
+        * mathml/presentation/direction.html: Added.
+
 2013-11-10  Oliver Hunt  <[email protected]>
 
         Implement Set iterators

Added: trunk/LayoutTests/mathml/presentation/direction-expected.html (0 => 159035)


--- trunk/LayoutTests/mathml/presentation/direction-expected.html	                        (rev 0)
+++ trunk/LayoutTests/mathml/presentation/direction-expected.html	2013-11-11 01:58:06 UTC (rev 159035)
@@ -0,0 +1,12 @@
+<!doctype html>
+<html dir="rtl">
+  <head>
+    <title>direction</title>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+
+    <p>שורשי משוואה מודגשת זו <math style="direction: ltr;"> <mstyle mathvariant="bold"> <msup> <mi>y</mi> <mn>3</mn> </msup> <mo>+</mo> <mi>p</mi> <mi>y</mi> <mo>+</mo> <mi>q</mi> <mo>=</mo> <mn>0</mn> </mstyle> </math> מודגשים גם הם</p>
+
+  </body>
+</html>

Added: trunk/LayoutTests/mathml/presentation/direction.html (0 => 159035)


--- trunk/LayoutTests/mathml/presentation/direction.html	                        (rev 0)
+++ trunk/LayoutTests/mathml/presentation/direction.html	2013-11-11 01:58:06 UTC (rev 159035)
@@ -0,0 +1,12 @@
+<!doctype html>
+<html dir="rtl">
+  <head>
+    <title>direction</title>
+    <meta charset="utf-8"/>
+  </head>
+  <body>
+
+    <p>שורשי משוואה מודגשת זו <math> <mstyle mathvariant="bold"> <msup> <mi>y</mi> <mn>3</mn> </msup> <mo>+</mo> <mi>p</mi> <mi>y</mi> <mo>+</mo> <mi>q</mi> <mo>=</mo> <mn>0</mn> </mstyle> </math> מודגשים גם הם</p>
+
+  </body>
+</html>

Modified: trunk/Source/WebCore/ChangeLog (159034 => 159035)


--- trunk/Source/WebCore/ChangeLog	2013-11-11 00:22:38 UTC (rev 159034)
+++ trunk/Source/WebCore/ChangeLog	2013-11-11 01:58:06 UTC (rev 159035)
@@ -1,3 +1,15 @@
+2013-11-10  Frédéric Wang  <[email protected]>
+
+        CSS direction must be reset to ltr on <math> element.
+        <https://webkit.org/b/124121>
+
+        Reviewed by Darin Adler.
+
+        Test: mathml/presentation/direction.html
+
+        * css/mathml.css:
+        (math): set direction: ltr; on the <math> element.
+
 2013-11-10  Sam Weinig  <[email protected]>
 
         Reduce the size of RenderBlockFlow by making its rare data inherit from RenderBlockRareData

Modified: trunk/Source/WebCore/css/mathml.css (159034 => 159035)


--- trunk/Source/WebCore/css/mathml.css	2013-11-11 00:22:38 UTC (rev 159034)
+++ trunk/Source/WebCore/css/mathml.css	2013-11-11 01:58:06 UTC (rev 159035)
@@ -3,6 +3,7 @@
 math {
     -webkit-line-box-contain: glyphs replaced;
     text-indent: 0;
+    direction: ltr;
 }
 mtext {
     line-height: 1.0;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to