Bug 1541651 [wpt PR 16137] - These tests should use Ahem font, a=testonly
authorJavier Fernandez Garcia-Boente <jfernandez@igalia.com>
Thu, 18 Apr 2019 11:58:53 +0000
changeset 529978 5e286877f6bd5c969ed2bdd76763d5a76ea67efe
parent 529977 7cad0ca41e26fec3c163fb600dbd418368a79a3e
child 529979 d5d0610ad4998e8e6d3bfc40618b1ff9cac03774
push id11265
push userffxbld-merge
push dateMon, 13 May 2019 10:53:39 +0000
treeherdermozilla-beta@77e0fe8dbdd3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1541651, 16137, 196169
milestone68.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 1541651 [wpt PR 16137] - These tests should use Ahem font, a=testonly Automatic update from web-platform-tests Use Ahem for these tests. (#16137) Safari renders incorrectly these cases due to a bug (https://webkit.org/b/196169) when using monospace font. -- wpt-commits: 3ad4a3b1dfbb5199cb6e60ef5981a63afc5c438d wpt-pr: 16137
testing/web-platform/tests/css/css-text/white-space/reference/white-space-intrinsic-size-001-ref.html
testing/web-platform/tests/css/css-text/white-space/reference/white-space-intrinsic-size-002-ref.html
testing/web-platform/tests/css/css-text/white-space/reference/white-space-intrinsic-size-003-ref.html
testing/web-platform/tests/css/css-text/white-space/reference/white-space-intrinsic-size-004-ref.html
testing/web-platform/tests/css/css-text/white-space/white-space-intrinsic-size-001.html
testing/web-platform/tests/css/css-text/white-space/white-space-intrinsic-size-002.html
testing/web-platform/tests/css/css-text/white-space/white-space-intrinsic-size-003.html
testing/web-platform/tests/css/css-text/white-space/white-space-intrinsic-size-004.html
--- a/testing/web-platform/tests/css/css-text/white-space/reference/white-space-intrinsic-size-001-ref.html
+++ b/testing/web-platform/tests/css/css-text/white-space/reference/white-space-intrinsic-size-001-ref.html
@@ -1,15 +1,15 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
 <title>test reference</title>
 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
 <style>
 div {
-  font-family: monospace;
+  font-family: Ahem;
   color: transparent;
   font-size: 50px;
   background: green;
 }
 </style>
 
 <p>Test passes if there is a green rectangle below and no red.
 <div>XS<br>S<br>XS<br>S</div>
--- a/testing/web-platform/tests/css/css-text/white-space/reference/white-space-intrinsic-size-002-ref.html
+++ b/testing/web-platform/tests/css/css-text/white-space/reference/white-space-intrinsic-size-002-ref.html
@@ -1,17 +1,17 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
 <title>test reference</title>
 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
 <style>
 div {
   color: transparent;
   background: blue;
-  font-family: monospace;
+  font-family: Ahem;
   font-size: 50px;
   width: 3ch;
 }
 </style>
 
 <p>Test passes if there is a single blue rectangle below.
 <div>
 XXX<br>
--- a/testing/web-platform/tests/css/css-text/white-space/reference/white-space-intrinsic-size-003-ref.html
+++ b/testing/web-platform/tests/css/css-text/white-space/reference/white-space-intrinsic-size-003-ref.html
@@ -1,14 +1,15 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
 <title>test reference</title>
 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
 <style>
 div {
+  font-family: Ahem;
   color: transparent;
   font-size: 50px;
   background: green;
 }
 </style>
 
 <p>Test passes if there is a green rectangle below and no red.
 <div>X<br>X</div>
--- a/testing/web-platform/tests/css/css-text/white-space/reference/white-space-intrinsic-size-004-ref.html
+++ b/testing/web-platform/tests/css/css-text/white-space/reference/white-space-intrinsic-size-004-ref.html
@@ -4,17 +4,17 @@
 <link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net/">
 <style>
 aside {
   float: left;
   background: blue;
 }
 div {
   color: transparent;
-  font-family: monospace;
+  font-family: Ahem;
   font-size: 50px;
   width: 5ch;
 }
 </style>
 
 <p>Test passes if there is a single blue rectangle below.
 <div>
   <aside class=own>X</aside>
--- a/testing/web-platform/tests/css/css-text/white-space/white-space-intrinsic-size-001.html
+++ b/testing/web-platform/tests/css/css-text/white-space/white-space-intrinsic-size-001.html
@@ -10,17 +10,17 @@
 <style>
 aside {
   float: left;
   white-space: break-spaces;
   background: green;
 }
 aside:last-of-type { overflow-wrap: break-word; }
 div {
-  font-family: monospace;
+  font-family: Ahem;
   color: transparent;
   font-size: 50px;
   width: 0ch;
 }
 
 #red {
   position: absolute;
   background: red;
--- a/testing/web-platform/tests/css/css-text/white-space/white-space-intrinsic-size-002.html
+++ b/testing/web-platform/tests/css/css-text/white-space/white-space-intrinsic-size-002.html
@@ -14,17 +14,17 @@ aside {
   background: blue;
 }
 aside:last-of-type {
   float:right;
   overflow-wrap: break-word;
 }
 div {
   color: transparent;
-  font-family: monospace;
+  font-family: Ahem;
   font-size: 50px;
   width: 3ch;
   /* both floats should take the full 3ch,
      one on each line
      and therefore line up to look like a single large box.
 
      If the spaces are not taken into account for min-content sizing,
      the floats will leave a gap between them */
--- a/testing/web-platform/tests/css/css-text/white-space/white-space-intrinsic-size-003.html
+++ b/testing/web-platform/tests/css/css-text/white-space/white-space-intrinsic-size-003.html
@@ -10,16 +10,17 @@
 <style>
 aside {
   float: left;
   white-space: pre-wrap;
   background: red;
 }
 div {
   color: transparent;
+  font-family: Ahem;
   font-size: 50px;
   width: 0ch;
 }
 .own { overflow-wrap: normal; }
 .owbw{ overflow-wrap: break-word; }
 
 #green {
   position: absolute;
--- a/testing/web-platform/tests/css/css-text/white-space/white-space-intrinsic-size-004.html
+++ b/testing/web-platform/tests/css/css-text/white-space/white-space-intrinsic-size-004.html
@@ -12,17 +12,17 @@ aside {
   float: left;
   white-space: pre-wrap;
   background: blue;
   margin-bottom: 1em;
 }
 aside:last-of-type { overflow-wrap: break-word; }
 div {
   color: transparent;
-  font-family: monospace;
+  font-family: Ahem;
   font-size: 50px;
   width: 3ch; /* enough room for both floats if their max-content size does not include the preserved spaces,
 		 but not enough if they do, causing a line break in that case. */
 }
 </style>
 
 <p>Test passes if there is a single blue rectangle below.
 <div>