Bug 1231175 - Reftest for failure to recognize mixed directionality in RTL para beginning with number within embed/isolate controls. r=smontagu
authorJonathan Kew <jkew@mozilla.com>
Wed, 09 Dec 2015 11:57:44 -0500
changeset 297675 c8b058539dfd865df1e6c8b01e94992d96df879e
parent 297674 68a913a7d737eec7f06cfffdd8bdcc83a9864a09
child 297676 db10960e8ea11debb896e7dcff01d971ef09827f
push id8824
push userraliiev@mozilla.com
push dateMon, 14 Dec 2015 20:18:56 +0000
treeherdermozilla-aurora@e2031358e2a6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmontagu
bugs1231175
milestone45.0a1
Bug 1231175 - Reftest for failure to recognize mixed directionality in RTL para beginning with number within embed/isolate controls. r=smontagu
layout/reftests/bidi/1231175-1-ref.html
layout/reftests/bidi/1231175-1.html
layout/reftests/bidi/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/1231175-1-ref.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<style>
+div { width: 200px; border: 1px solid blue; }
+span { direction: rtl; color: red; unicode-bidi: bidi-override; }
+</style>
+<body>
+<p>The number in the red text should read "18" in all cases.
+<div>
+<ol dir=rtl>
+<li><span>81 ديسمبر</span></li>
+<li><span>81 ديسمبر</span></li>
+<li><span>81 ديسمبر</span></li>
+<li><span>81 ديسمبر</span></li>
+<li><span>81 ديسمبر</span></li>
+<li><span>81 ديسمبر</span></li>
+<li><span>81 ديسمبر</span></li>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bidi/1231175-1.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<style>
+div { width: 200px; border: 1px solid blue; }
+span { direction: rtl; color: red; }
+</style>
+<body>
+<p>The number in the red text should read "18" in all cases.
+<div>
+<ol dir=rtl>
+<li><span style="unicode-bidi: normal">18 ديسمبر</span></li>
+<li><span style="unicode-bidi: embed">18 ديسمبر</span></li>
+<li><span style="unicode-bidi: -moz-isolate; unicode-bidi: isolate">18 ديسمبر</span></li>
+<li><span style="unicode-bidi: -moz-plaintext; unicode-bidi: plaintext">18 ديسمبر</span></li>
+<li><span>&#x202B;18 ديسمبر&#x202C;</span></li>
+<li><span>&#x2067;18 ديسمبر&#x2069;</span></li>
+<li><span>&#x2068;18 ديسمبر&#x2069;</span></li>
--- a/layout/reftests/bidi/reftest.list
+++ b/layout/reftests/bidi/reftest.list
@@ -167,8 +167,9 @@ fuzzy-if(Android,254,557) == brackets-2a
 == brackets-2c-ltr.html brackets-2c-ltr-ref.html
 fuzzy-if(Android,254,231) == brackets-2c-rtl.html brackets-2c-rtl-ref.html
 == brackets-3a-ltr.html brackets-3a-ltr-ref.html
 == brackets-3a-rtl.html brackets-3a-rtl-ref.html
 == brackets-3b-ltr.html brackets-3b-ltr-ref.html
 == brackets-3b-rtl.html brackets-3b-rtl-ref.html
 == 1217833-1.html 1217833-1-ref.html
 == 1217833-2.html 1217833-2-ref.html
+fails == 1231175-1.html 1231175-1-ref.html