bug 970891 - reftest for font fallback on the <space> character. r=roc
☠☠ backed out by ff0e1abb0b06 ☠ ☠
authorJonathan Kew <jkew@mozilla.com>
Tue, 11 Feb 2014 22:17:25 +0000
changeset 189521 e7c4304d45d7d5480a379e77b3ea9b465e771f95
parent 189520 75d3146ac0d36b528e371c42e2ae25a08102744d
child 189522 97a317e7c1db5ef44199c5610ef1bb0fa243e10c
push id3503
push userraliiev@mozilla.com
push dateMon, 28 Apr 2014 18:51:11 +0000
treeherdermozilla-beta@c95ac01e332e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs970891
milestone30.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 970891 - reftest for font fallback on the <space> character. r=roc
layout/reftests/text/reftest.list
layout/reftests/text/space-font-1-ref.html
layout/reftests/text/space-font-1.html
--- a/layout/reftests/text/reftest.list
+++ b/layout/reftests/text/reftest.list
@@ -290,8 +290,11 @@ pref(layout.css.text-align-true-value.en
 # stray control chars should not be invisible, bug 909344
 != control-chars-01a.html control-chars-01-notref.html
 != control-chars-01b.html control-chars-01-notref.html
 != control-chars-01c.html control-chars-01-notref.html
 != control-chars-01d.html control-chars-01-notref.html
 != control-chars-02.html control-chars-02-notref.html
 == control-chars-03a.html control-chars-03-ref.html
 == control-chars-03b.html control-chars-03-ref.html
+
+# font fallback for <space> when not supported in the primary font family - bug 970891
+HTTP(..) == space-font-1.html space-font-1-ref.html
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/space-font-1-ref.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8">
+  <title>Bug 970891</title>
+  <style type="text/css">
+    @font-face {
+      font-family: "test";
+      src: url(../fonts/markA.ttf);
+    }
+    div {
+      font-family: test, monospace;
+      font-size: 16px;
+      line-height: 32px;
+    }
+    span {
+      font-family: monospace;
+    }
+  </style>
+</head>
+
+<body>
+  <div><b>A</b><span> </span><b>A</b><span> </span><i>A</i><span> </span><i>A</i></div>
+</body>
+
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/text/space-font-1.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8">
+  <title>Bug 970891</title>
+  <style type="text/css">
+    @font-face {
+      font-family: "test";
+      src: url(../fonts/markA.ttf);
+    }
+    div {
+      font-family: test, monospace;
+      font-size: 16px;
+      line-height: 32px;
+    }
+  </style>
+</head>
+
+<body>
+  <!-- markA does not have a glyph for the <space> character,
+       so the spaces should fall back to 'monospace' -->
+  <div><b>A</b> <b>A</b> <i>A</i> <i>A</i></div>
+</body>
+
+</html>