Bug 1798297 - Add reftest for the Yu Gothic UI kerning special-case. r=dholbert

Differential Revision: https://phabricator.services.mozilla.com/D160888
This commit is contained in:
Jonathan Kew 2022-11-01 19:41:47 +00:00
Родитель 974a9cdc7f
Коммит 04d92e487b
4 изменённых файлов: 53 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<title>Coordination of kern and palt features for CJK kerning</title>
<style>
.test {
font-family: "Yu Gothic UI";
font-size: 3em;
font-feature-settings: "kern" 1, "palt" 1; /* should render differently from testcase */
}
</style>
<body>
<p>Enabling font-kerning:normal should NOT apply 'palt' for the Yu Gothic UI font</p>
<div class=test>幻塔アートフェスティバル イラストコンテスト 開催</div>
</body>
</head>

Просмотреть файл

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<title>Coordination of kern and palt features for CJK kerning</title>
<style>
.test {
font-family: "Yu Gothic UI";
font-size: 3em;
font-kerning: none; /* should render the same as testcase with 'normal' */
}
</style>
<body>
<p>Enabling font-kerning:normal should NOT apply 'palt' for the Yu Gothic UI font</p>
<div class=test>幻塔アートフェスティバル イラストコンテスト 開催</div>
</body>
</head>

Просмотреть файл

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<title>Coordination of kern and palt features for CJK kerning</title>
<style>
.test {
font-family: "Yu Gothic UI";
font-size: 3em;
font-kerning: normal;
}
</style>
<body>
<p>Enabling font-kerning:normal should NOT apply 'palt' for the Yu Gothic UI font</p>
<div class=test>幻塔アートフェスティバル イラストコンテスト 開催</div>
</body>
</head>

Просмотреть файл

@ -2132,3 +2132,5 @@ pref(layout.css.prefers-color-scheme.content-override,0) == 1787127.html 1787127
pref(layout.css.prefers-color-scheme.content-override,1) == 1787127.html 1787127-ref.html pref(layout.css.prefers-color-scheme.content-override,1) == 1787127.html 1787127-ref.html
pref(layout.css.prefers-color-scheme.content-override,2) == 1787127.html 1787127-ref.html pref(layout.css.prefers-color-scheme.content-override,2) == 1787127.html 1787127-ref.html
== 1792643-1.html 1792643-1-ref.html == 1792643-1.html 1792643-1-ref.html
skip-if(!/^Windows\x20NT\x2010\.0/.test(http.oscpu)) == 1798297-1.html 1798297-1-ref.html
skip-if(!/^Windows\x20NT\x2010\.0/.test(http.oscpu)) != 1798297-1.html 1798297-1-notref.html