Bug 1072106 - Reftest for justification of accented space characters. r=roc
authorJonathan Kew <jkew@mozilla.com>
Wed, 24 Sep 2014 18:10:59 +0100
changeset 207069 b5556bdf4c156e9453e7b34e095fd4cab42ff0fe
parent 207068 cc4e54e76940e570cb214b6e1c49167ce782ddcc
child 207070 570b7a08a2b7d382cbd04ae8f7866d21577d53e6
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersroc
bugs1072106
milestone35.0a1
Bug 1072106 - Reftest for justification of accented space characters. r=roc
layout/reftests/text/justification-space-diacritic-ref.html
layout/reftests/text/justification-space-diacritic.html
layout/reftests/text/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/justification-space-diacritic-ref.html
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML>
+<html>
+<meta charset="utf-8">
+<style>
+div {
+  font-family:monospace;
+  width:200px;
+  border:1px solid red;
+  -moz-text-align-last:justify;
+  text-align-last:justify;
+}
+span {
+  display:inline-block;
+}
+</style>
+<!-- The <space> or <nbsp> characters that carry combining marks
+     should NOT be stretched by justification. -->
+<div>
+<p><span>Hello &#x308; &#x308; &#x308;</span> world
+<p><span>Hello&nbsp;&#x308;&nbsp;&#x308;&nbsp;&#x308;</span> world
+<p><span>Hello&nbsp;&#x308;</span> <span>&nbsp;&#x301;&nbsp;&#x300;world</span>
+<p><span>Hello&nbsp;&#x202d;&#x308;&#x202c;</span>‬ <span>&nbsp;&#x202d;&#x302;&#x202c;world</span>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/justification-space-diacritic.html
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML>
+<html>
+<meta charset="utf-8">
+<style>
+div {
+  font-family:monospace;
+  width:200px;
+  border:1px solid red;
+  -moz-text-align-last:justify;
+  text-align-last:justify;
+}
+span {
+  display:inline-block;
+}
+</style>
+<!-- The <space> or <nbsp> characters that carry combining marks
+     should NOT be stretched by justification. -->
+<div>
+<p>Hello &#x308; &#x308; &#x308; world
+<p>Hello&nbsp;&#x308;&nbsp;&#x308;&nbsp;&#x308; world
+<p>Hello&nbsp;&#x308; &nbsp;&#x301;&nbsp;&#x300;world
+<p>Hello&nbsp;&#x202d;&#x308;&#x202c;‬ &nbsp;&#x202d;&#x302;&#x202c;world
--- a/layout/reftests/text/reftest.list
+++ b/layout/reftests/text/reftest.list
@@ -11,16 +11,17 @@ random-if(!cocoaWidget) == font-size-adj
 # in the "obvious" way, but it is unclear what the behavior should really be;
 # see bug #366138 for some (inconclusive) discussion
 # == font-size-adjust-03.html font-size-adjust-03-ref.html
 == justification-1.html justification-1-ref.html
 == justification-2a.html justification-2-ref.html
 == justification-2b.html justification-2-ref.html
 == justification-2c.html justification-2-ref.html
 != justification-2d.html justification-2-ref.html
+== justification-space-diacritic.html justification-space-diacritic-ref.html
 HTTP(..) load ligature-with-space-1.html
 == line-editing-1a.html line-editing-1-ref.html
 == line-editing-1b.html line-editing-1-ref.html
 == line-editing-1c.html line-editing-1-ref.html
 == line-editing-1d.html line-editing-1-ref.html
 == line-editing-1e.html line-editing-1-ref.html
 fails-if(cocoaWidget||winWidget) HTTP(..) == lineheight-metrics-1.html lineheight-metrics-1-ref.html # bug 657864
 == lineheight-percentage-1.html lineheight-percentage-1-ref.html