Bug 1395926 - Reftest for GPOS glyph positioning adjustments in vertical-upright mode. r=jrmuizel

This commit is contained in:
Jonathan Kew 2017-10-27 18:57:17 +01:00
parent 840ac6d981
commit b7659a220a
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,19 @@
<!DOCTYPE html>
<style>
@font-face { font-family: Charis; src: url(../fonts/sil/CharisSIL-R.ttf); }
div { writing-mode: vertical-rl; text-orientation: upright; }
p { position: absolute; top: 50px; }
.times { font: 36px Times New Roman, DejaVu Serif, serif; letter-spacing: .25em; left: 50px; }
.arial { font: 36px Arial, DejaVu Sans, sans-serif; letter-spacing: .25em; left: 150px; }
.charis { font: 36px Charis, serif; letter-spacing: .25em; left: 250px; }
.overlay { color: transparent; background: green; }
</style>
Red diacritics should <i>not</i> extend beyond the green boxes:
<div>
<p class="times overlay">&nbsp;A&#x315;b&#x323;&#x329;c&#x32d;d&#x305;e&#x309;&#x306;&#x308;
<p class="arial overlay">&nbsp;A&#x315;b&#x323;&#x329;c&#x32d;d&#x305;e&#x309;&#x306;&#x308;
<p class="charis overlay">&nbsp;A&#x315;b&#x323;&#x329;c&#x32d;d&#x305;e&#x309;&#x306;&#x308;
</div>

View File

@ -0,0 +1,22 @@
<!DOCTYPE html>
<style>
@font-face { font-family: Charis; src: url(../fonts/sil/CharisSIL-R.ttf); }
div { writing-mode: vertical-rl; text-orientation: upright; }
p { position: absolute; top: 50px; color: red; }
.times { font: 36px Times New Roman, DejaVu Serif, serif; letter-spacing: .25em; left: 50px; }
.arial { font: 36px Arial, DejaVu Sans, sans-serif; letter-spacing: .25em; left: 150px; }
.charis { font: 36px Charis, serif; letter-spacing: .25em; left: 250px; }
.overlay { color: transparent; background: green; }
</style>
Red diacritics should <i>not</i> extend beyond the green boxes:
<div>
<p class="times">&nbsp;A&#x315;b&#x323;&#x329;c&#x32d;d&#x305;e&#x309;&#x306;&#x308;
<p class="times overlay">&nbsp;A&#x315;b&#x323;&#x329;c&#x32d;d&#x305;e&#x309;&#x306;&#x308;
<p class="arial">&nbsp;A&#x315;b&#x323;&#x329;c&#x32d;d&#x305;e&#x309;&#x306;&#x308;
<p class="arial overlay">&nbsp;A&#x315;b&#x323;&#x329;c&#x32d;d&#x305;e&#x309;&#x306;&#x308;
<p class="charis">&nbsp;A&#x315;b&#x323;&#x329;c&#x32d;d&#x305;e&#x309;&#x306;&#x308;
<p class="charis overlay">&nbsp;A&#x315;b&#x323;&#x329;c&#x32d;d&#x305;e&#x309;&#x306;&#x308;
</div>

View File

@ -179,6 +179,7 @@ fuzzy-if(gtkWidget,1,25) fuzzy-if(cocoaWidget,1,2) == 1302389-scrolled-rect-2b.h
fuzzy-if(Android,54,852) == 1302389-scrolled-rect-2d.html 1302389-scrolled-rect-2-ref.html
== 1361631-mongolian-upright-1.html 1361631-mongolian-upright-1-ref.html
fails == 1395926-vertical-upright-gpos-1.html 1395926-vertical-upright-gpos-1-ref.html
# Suite of tests from Gérard Talbot in bug 1079151
# Frequent Windows 7 load failed: timed out waiting for test to complete (waiting for onload scripts to complete), bug 1167155 and friends