[phrase-line-break] Add Japanese web fonts to tests
It looks like wpt.fyi Linux bots don't have any CJK fonts.
Some tests assume Japanese characters are 1em-wide, so they
fail on wpt.fyi Linux bots[1].
This patch adds a Japanese web font to these tests.
[1] https://wpt.fyi/results/css/css-text/word-break/auto-phrase?label=experimental&label=master&aligned
Bug: 1443291
Change-Id: Icec08324caf91669bbb8ad0dec9306e016ef2140
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4846014
Commit-Queue: Kent Tamura <tkent@chromium.org>
Reviewed-by: Kent Tamura <tkent@chromium.org>
Auto-Submit: Koji Ishii <kojii@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1193328}
diff --git a/css/css-text/word-break/auto-phrase/reference/word-break-auto-phrase-overflow-001-ref.html b/css/css-text/word-break/auto-phrase/reference/word-break-auto-phrase-overflow-001-ref.html
index d75b50d..07bbb23 100644
--- a/css/css-text/word-break/auto-phrase/reference/word-break-auto-phrase-overflow-001-ref.html
+++ b/css/css-text/word-break/auto-phrase/reference/word-break-auto-phrase-overflow-001-ref.html
@@ -1,7 +1,12 @@
<!DOCTYPE html>
<meta charset="utf-8">
<style>
+@font-face {
+ font-family: mplus;
+ src: url(/fonts/mplus-1p-regular.woff);
+}
.container > div {
+ font-family: mplus;
white-space: nowrap;
font-size: 10px;
border: 1px solid;
diff --git a/css/css-text/word-break/auto-phrase/reference/word-break-auto-phrase-wbr-nobr-001-ref.html b/css/css-text/word-break/auto-phrase/reference/word-break-auto-phrase-wbr-nobr-001-ref.html
index dbc18b8..4edf83b 100644
--- a/css/css-text/word-break/auto-phrase/reference/word-break-auto-phrase-wbr-nobr-001-ref.html
+++ b/css/css-text/word-break/auto-phrase/reference/word-break-auto-phrase-wbr-nobr-001-ref.html
@@ -1,7 +1,12 @@
<!DOCTYPE html>
<meta charset="utf-8">
<style>
+@font-face {
+ font-family: mplus;
+ src: url(/fonts/mplus-1p-regular.woff);
+}
.container > div {
+ font-family: mplus;
width: 3em;
font-size: 10px;
border: 1px solid;
diff --git a/css/css-text/word-break/auto-phrase/reference/word-break-auto-phrase-wbr-nobr-002-ref.html b/css/css-text/word-break/auto-phrase/reference/word-break-auto-phrase-wbr-nobr-002-ref.html
index 72d89af..8760565 100644
--- a/css/css-text/word-break/auto-phrase/reference/word-break-auto-phrase-wbr-nobr-002-ref.html
+++ b/css/css-text/word-break/auto-phrase/reference/word-break-auto-phrase-wbr-nobr-002-ref.html
@@ -1,7 +1,12 @@
<!DOCTYPE html>
<meta charset="utf-8">
<style>
+@font-face {
+ font-family: mplus;
+ src: url(/fonts/mplus-1p-regular.woff);
+}
.container > div {
+ font-family: mplus;
width: 10em;
font-size: 10px;
border: 1px solid;
diff --git a/css/css-text/word-break/auto-phrase/word-break-auto-phrase-overflow-001.html b/css/css-text/word-break/auto-phrase/word-break-auto-phrase-overflow-001.html
index 8f05fff..fcd1752 100644
--- a/css/css-text/word-break/auto-phrase/word-break-auto-phrase-overflow-001.html
+++ b/css/css-text/word-break/auto-phrase/word-break-auto-phrase-overflow-001.html
@@ -13,7 +13,12 @@
algorithm is UA dependent. Please add references if different.
-->
<style>
+@font-face {
+ font-family: mplus;
+ src: url(/fonts/mplus-1p-regular.woff);
+}
.container > div {
+ font-family: mplus;
word-break: auto-phrase;
font-size: 10px;
border: 1px solid;
diff --git a/css/css-text/word-break/auto-phrase/word-break-auto-phrase-wbr-nobr-001.html b/css/css-text/word-break/auto-phrase/word-break-auto-phrase-wbr-nobr-001.html
index 4bda24e..b8e5520 100644
--- a/css/css-text/word-break/auto-phrase/word-break-auto-phrase-wbr-nobr-001.html
+++ b/css/css-text/word-break/auto-phrase/word-break-auto-phrase-wbr-nobr-001.html
@@ -12,7 +12,12 @@
algorithm is UA dependent. Please add references if different.
-->
<style>
+@font-face {
+ font-family: mplus;
+ src: url(/fonts/mplus-1p-regular.woff);
+}
.container > div {
+ font-family: mplus;
word-break: auto-phrase;
width: 3em;
font-size: 10px;
diff --git a/css/css-text/word-break/auto-phrase/word-break-auto-phrase-wbr-nobr-002.html b/css/css-text/word-break/auto-phrase/word-break-auto-phrase-wbr-nobr-002.html
index 681b710..8506192 100644
--- a/css/css-text/word-break/auto-phrase/word-break-auto-phrase-wbr-nobr-002.html
+++ b/css/css-text/word-break/auto-phrase/word-break-auto-phrase-wbr-nobr-002.html
@@ -13,7 +13,12 @@
algorithm is UA dependent. Please add references if different.
-->
<style>
+@font-face {
+ font-family: mplus;
+ src: url(/fonts/mplus-1p-regular.woff);
+}
.container > div {
+ font-family: mplus;
word-break: auto-phrase;
width: 10em;
font-size: 10px;