Bug 1818412 - Add reftest. r=emilio

This fails with current trunk: the top half-glyph (on the pink background) fails to render,
because we incorrectly determine it is outside the cliprect and skip painting it:
https://treeherder.mozilla.org/jobs?repo=try&revision=70a0539bf9d09330c2fd3b5e08c2aeba90d90b1d

With the fix, it's all good:
https://treeherder.mozilla.org/jobs?repo=try&revision=67675d089b315661696512be61436e83144ed64c

Differential Revision: https://phabricator.services.mozilla.com/D170971
This commit is contained in:
Jonathan Kew 2023-02-25 20:59:45 +00:00
Родитель 448dfffea4
Коммит e8346384e4
3 изменённых файлов: 89 добавлений и 0 удалений

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

@ -0,0 +1,41 @@
<!DOCTYPE html>
<html>
<meta charset=UTF-8>
<style>
@font-face{
font-family:Ahem;
src:url(../fonts/Ahem.ttf);
}
body{
margin:0;
}
span{
display:block;
}
span div{
position:absolute;
width:200px;
height:100px;
overflow:hidden;
}
div.up{
background:pink;
}
div.down{
top:100px;
background:yellow;
}
div.text{
position:absolute;
height:200px;
font:160px/1.2 Ahem;
padding-left:20px;
}
</style>
<body>
<span>
<div class="up"></div>
<div class="down"></div>
<div class="text">A</div>
</span>
</body>

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

@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<meta charset=UTF-8>
<style>
@font-face{
font-family:Ahem;
src:url(../fonts/Ahem.ttf);
}
body{
margin:0;
}
span{
display:block;
}
span div{
position:absolute;
width:200px;
height:100px;
overflow:hidden;
}
div.up{
background:pink;
}
div.down{
top:100px;
background:yellow;
}
div.text{
position:absolute;
height:200px;
font:160px/1.2 Ahem;
padding-left:20px;
}
div.down div.text{
bottom:0px;
}
</style>
<body>
<span>
<div class="up">
<div class="text">A</div>
</div>
<div class="down">
<div class="text">A</div>
</div>
</span>
</body>

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

@ -2134,3 +2134,4 @@ skip-if(!/^Windows\x20NT\x2010\.0/.test(http.oscpu)) != 1798297-1.html 1798297-1
== 1803999-1.html 1803999-1-ref.html
== 1814628-1.html 1814628-1-ref.html
== 1814047.html 1814047-ref.html
== 1818412-1.html 1818412-1-ref.html